css selectors, cross browser.

liunx

Guest
Any reason in particular why this: #ml a:link,visited,hover,active {

only works in Netscape 7 and not Fire Fox 0.9.3, IE6 and Opera 7.54 ?

I'm guessing it's something wrong with my code rather than a browser error seeing as only one of them is effecting the right links. So what've I screwed up this time?According to <!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS21/selector.html#q2">http://www.w3.org/TR/CSS21/selector.html#q2</a><!-- m --> it should not workActually there isn't a thing wrong with the code, but it probably isn't doing what you want it to do. :D

Right now, it will apply whatever your styles to any a:link that is a child of an element with the id of "ml", to the elements visited, hover, and active, as well.

What you probably want is this:

#ml a:link, #ml a:visited, #ml a:hover, #ml a:active {Yeah. In NN it affects all links that are children of "ml", regardless or state.

In other browsers however, they are not identified.
 
Back
Top