navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

A Little Strange

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> A Little Strange
Page: [1]
 
thatguy

 

Posts: 125
Joined: 6/17/2003
Status: offline

 
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

 

Posts: 4087
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
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 ;)

_____________________________

David Prescott
Gekko web design

(in reply to thatguy)
thatguy

 

Posts: 125
Joined: 6/17/2003
Status: offline

 
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.

(in reply to d a v e)
d a v e

 

Posts: 4087
Joined: 7/24/2002
From: England (but live in Finland now)
Status: offline

 
RE: A Little Strange - 3/20/2006 14:20:31   
nice one :)

_____________________________

David Prescott
Gekko web design

(in reply to thatguy)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> A Little Strange
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts