Hi ho,
I wonder if anyone can help me with this:
My goal is to design a webpage where the text links have different attributes.
Specifically, the background colour along the top of the page is dark blue so I would like those text links to be white on normal state and yellow on mouse-over (hover).
But I also have a yellow area below the dark section, so for links in that area of the page I would like the links to be a dark colour on normal state (probably red) and then for them to turn dark blue when you do a mouseover.
Ok, now so far I've created and linked a couple of external style sheets to the page. Each of the style sheet defines the link attributes that I want for whatever section the style is applied to.
The trouble is, both external style sheets feature statements of the following format:
a:link { color: #FFFFFF }
a:active { color: #FFFFFF }
a:visited { color: #FFFFFF }
a:hover { color: #FBBD5A }
a { text-decoration: none }
-That works a treat if you only have ONE type of link on the page, but I'm hoping to have two different types of links (one changing to a dark colour and the other going light on hover). The small "a"'s in the code above makes the rules applicable to the entire page.
So with the page I have right now I can either have it ALL one way or all the other way (depending on which CSS gets the last mention in the code).
Does anyone know how I can solve this problem and have two different hover effects in action on the one page?
I've searched the universe and I can't find an answer to this one.
Thanks!