A Little Strange (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


thatguy -> A Little Strange (3/20/2006 13:45:27)

In my css I have this:

a.nav:link { color:#ffffff;text-decoration: none }
a.nav:hover { text-decoration: underline; }
a { color: #000000; text-decoration: none; }
a:hover { text-decoration: underline; }

And on one of my pages I have this:

<a class="nav" href="../RotEnergRecov.htm">

For some reason the text is black and not white but if I change the above line to:

<a class="nav" href="../RotEnergyRecov.htm">

(actually I could change the page name to anything it seems)

The text will follow the nav class (like every other link on the page) and have white text again.

Why would changing the page I am linking to and absolutely nothing else change the color of the text (or make it not use the class)?

P.S. I also tried creating a copy of the page I'm linking to and giving it a different name so that what I am linking to stays as an active link in both cases. It didn't matter. This is easily fixable but I am still quite curious.




d a v e -> RE: A Little Strange (3/20/2006 14:13:04)

could be to do with visited links but a url would help clarify the situation ;)




thatguy -> RE: A Little Strange (3/20/2006 14:19:28)

You are absolutely right. It was obvious when I published and different links were black text. I just declared all four states for that class (link, visited, hover, active - in that order) because after that I had trouble with my hover effect with already visited links. Everything seems straightened out now. Thank you.




d a v e -> RE: A Little Strange (3/20/2006 14:20:31)

nice one :)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125