Click to See Complete Forum and Search --> : Style link help again?
sharkey
03-31-2004, 04:28 PM
Hey i have links situated in a div at the top of my page and there going to be different from my normal links what have i done wrong they aren't changing colour. I have attached my stylesheet.
i used the rule
a:link.top - top being the class obviously
Any help is really appreciated.
sharkey
03-31-2004, 04:29 PM
As per usual i forgot the attachment,
Sorry
Paul Jr
03-31-2004, 05:49 PM
The correct syntax would be:
selector.class: pseudo-class
So... a.top:link
Though, I prefer to use descendant selectors (http://www.w3.org/TR/REC-CSS2/selector.html#descendant-selectors), as it makes updating easier, prevents div/spanitis, and is generally less code and such.
sharkey
04-01-2004, 03:15 AM
Cheers for the help paul it worked well thanks again mate.
Paul Jr
04-02-2004, 03:14 PM
Glad to have helped. ;)