January 9, 200917 yr I have a few nav links so I added a class: a.nav { padding-right:10px; vertical-align:middle; } then I made a pseudo-class active for when the link is clicked. a.nav:active { color:red; } But it's not working. I'm having a mind blank-out and can't seem to think of whats causing the problem... In other words, can someone help me figure this out? Thank you very much.
January 9, 200917 yr Author Sure: <a href="index.htm" title="Home Page" class="navLink">Home Page</a>
January 10, 200917 yr Author Oops. Posted the wrong code. Sorry, here is the correct code: <a href="index.htm" class="nav">Home</a>
January 10, 200917 yr you might find it easier to put your nav inside a container and give that container an id instead of a class for each individual link... so <div id="nav">your links</div> and the css would go #nav a:hover {color:red;} ... hope that helps.
January 10, 200917 yr Author you might find it easier to put your nav inside a container and give that container an id instead of a class for each individual link... so <div id="nav">your links</div> and the css would go #nav a:hover {color:red;} ... hope that helps. Ok, thanks I'll do that. I was having a bad day when I coded that I guess... lol
Create an account or sign in to comment