...

View Full Version : Stylesheet not making links properly



a4udi
10-31-2008, 07:57 PM
I've put this in my stylesheet and the links are all correct and it takes it.. but the hover links don't show up, they just stay white with no underline? Any ideas why the rollevers don't work?


.footer a:link { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #FFFFFF; text-decoration: none; }
.footer a:visited: { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #FFFFFF; text-decoration: none; }
.footer a:active: { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #FFFFFF; text-decoration: none; }
.footer a:hover: { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #999999; text-decoration: underline; }

BoldUlysses
10-31-2008, 07:59 PM
Try this:


.footer a:link { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #FFFFFF; text-decoration: none; }
.footer a:visited: { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #FFFFFF; text-decoration: none; }
.footer a:hover: { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #999999; text-decoration: underline; }
.footer a:active: { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #FFFFFF; text-decoration: none; }

Pseudo-classes on links have to be in a certain order to work properly: Link, Visited, Hover, Active. LoVe HAte is a good mnemonic to remember the order.

Pirate Mike
10-31-2008, 08:13 PM
There is an order to apply the pseudo elements, Link, Visited, Hover, Active.

A good way to remember it is LoVe HAte..

Mike

a4udi
10-31-2008, 08:13 PM
Thanks!

That's weird though, I copied it from a tutorial that seemed pretty decent but I guess they have it in the wrong order.

a4udi
10-31-2008, 08:23 PM
.footer a:active":"

looks like that colon is what was doing it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum