is there something wrong with this?

liunx

Guest
im trying to make it where i have 3 different types of links on my page so i tried to make 3 classes,

can anyone tell me if theres any errors in this im new to CSS


<style type="text/css">
<!--
A.footer:link { text-decoration: underline; color:#ffffff }
A.sidenav:link { text-decoration:none;background-color:#b7b7b7; width:145px;
border:1px solid black; display:block; }
A.header:link {text-decoration:overline underline; color:#4d7fbf }

A.footer:visited { text-decoration: underline; color:#ffffff }
A.sidenav:visited { text-decoration: none;background-color:#b7b7b7; width:145px;
border:1px solid black; display:block; }
A.header:visited {text-decoration:overline underline; color:#4d7fbf }


A.footer:hover { text-decoration: none; color:#ececec }
A.sidenav:hover { text-decoration: none;background-color:#c0c0c0; width:145px;
border:1px solid black; display:block; }
A.header:hover {text-decoration: underline overline; color:#d5dcef }
-->
</style>I dont think there are any errors apart from you have one of these:o
where you should have :overline etc etc.

What kind of errors are you experiencing??the smiley is a glitch, the problem is i set the width to 140px when i did a table right over my menu set to 140px the menu and the table didnt line up correctly, my menu looks longer than 140px by a pixel or two, i have no idea what the problem is.In the code above, the links with the sidenav class applied have a width of 145px, not 140px. Maybe that's causing the problem?no that was a typo of sorts it was at 145 both the table and the menu then i went down to 140 for both the table and menu, in internet explorer it lines up correctly in firefox and mozilla its off by like one pixel.Is there any padding applied to either elements?originally the menu had 5px padding-left for the text and i thought that was the problem and i took that out, also the container table had 5px padding left and right but i removed that to temporarily too and that wasnt it either, i also made a button in fireworks exactly 147 px and it didnt match up with the menu either.Do you have the page exhibiting the problem online? If so, can you provide the URL?i took it out but i will put it back in and post it tommorow afternoon.
 
Back
Top