Forum Moderators: not2easy
div.mainNav a { ... }
div.mainNav a:visited { ... }
div.mainNav a:hover { ... }
div.mainNav a:active { ... }
AFAIK, it's also possible to use classes:
a.style1 { ... }
a.style1:visited { ... }
a.style1:hover { ... }
a.style1:active { ... }
<edit>Changed class name in second example</edit>
[edited by: BlobFisk at 3:48 pm (utc) on Jan. 17, 2003]
Again this can be done in two ways, but sticking with classes:
p.nonLinkStyle { color: #differentFromLink }
You html would then be <p class="nonLinkStyle">.
This can also be achieved by using .nonLinkStyle insead of p.nonLinkStyle in your CSS.
Again, if you want to make it layer specific:
div.Layer1 p { color: #000; }div.Layer2 p { color: #009; }
Will make the colour of paragraph text in Layer1 black and in Layer2 dark blue. More on this here [ecoculture.com] and here [webreference.com].
<edit>Example links added</edit>
Nice and fast and when I showed some colleagues, they couldn't believe that it wasn't image based. And the saving on the download time goes without saying.
Be a little wary of the div.myDiv a { ... } stuff, you need to fiddle around with it at first (at least, I did!).
Best of luck with it!