Click to See Complete Forum and Search --> : Is my syntax right?


chazzy
02-15-2006, 09:02 PM
Because I feel like something's off. things are just displaying weirdly. I have a div with id footer, and for its links I am using the below CSS. Am I calling it properly?


#footer a:link, a:visited{
color:#eeeeee;
text-decoration:none;
background-color:#000000;
}
#footer a:hover, a:active{
color:#000000;
text-decoration:none;
background-color:#ffffff;
}

Lerura
02-15-2006, 09:35 PM
the first styling applies to a:link within #footer and all a:visited within the page.
if that is intended then: Yes.
but i guess that you want to apply the styling to both a:link and a:visited only within #footer, and similarly with the second styling

in that case your sheet must be this:#footer a:link, #footer a:visited{
color:#eeeeee;
text-decoration:none;
background-color:#000000;
}
#footer a:hover, #footer a:active{
color:#000000;
text-decoration:none;
background-color:#ffffff;
}

chazzy
02-15-2006, 09:54 PM
ah-ha!
thanks.