Log in

View Full Version : Why isn't the CSS for links working?


SpawnedX
07-08-2013, 04:40 AM
Here is my code:


.vbmenu_navcontrol {
background: #990000 url(http://www.automotive-technicians.com/forums/images/atfMenuBGMain.png) repeat;
font-color: #FFFFFF;
font-weight: bold;
font-size: 11px;
font-family: tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
padding: 3px 6px 3px 6px;
white-space: nowrap;
a:link {color: #FFFFFF; text-decoration: none;}
a:visited {color: #FFFFFF; text-decoration: none;}
a:hover {color: #FFFFFF; text-decoration: underline;} }

darnoldy
07-08-2013, 04:27 PM
because "a:link" etc. are selectors, not a properies...

You need to set it up as
.vbmenu_navcontrol {background: #990000 url(http://www.automotive-technicians.com/forums/images/atfMenuBGMain.png) repeat; font-color: #FFFFFF; font-weight: bold; font-size: 11px; font-family: tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; padding: 3px 6px 3px 6px; white-space: nowrap;}

.vbmenu_navcontrol a {color: #FFFFFF; text-decoration: none;}

.vbmenu_navcontrol a:hover {text-decoration: underline;}

SpawnedX
07-08-2013, 06:05 PM
Thank you, that worked.