ok. This is doing my head in now.
I am trying to add a link to a page where it has no text decoration until it is hovered over. I also want the colour of the link to be yellow.
It just doesnt seem to be picking it up.
This is the Css pagethe link in question is #newlink)
The page I am working on can be found at:http://www.web-writer-articles.co.ukCode:body{ margin:0; padding:0; background-color:#CCCCCC; } #wrapper{ width:98%; margin:0 auto; border:ridge thick #666666} #header{ float:left; width:100%; background-color:#FFFFFF; } #headleft{float:left; width:49%; } #headright{float:left; width:49%; } /*--------------------------------------------menu------------------------------------------*/ #menu{float:left; width:1000px; height:29px; } ul.menu{margin:0px;padding:0px;list-style:none;width:1000px; height:28px;float:left;background: url(myimages/menu_but.jpg) repeat-x;} ul.menu li {float:left;height:28px;} ul.menu a{display:block; line-height:1.5em; text-decoration:none; width:1000px; font-size:16px; font:Arial, Helvetica, sans-serif;color: #FFFFFF; outline:0;} ul.menu a:hover{ color:#FFFF00;} /*---------------------------------------end menu------------------------------------------*/ #mainContent{ float:left; width:1000px; background-color:#ffffff; } #newlink a:link{color:#FFFF00; text-decoration:none;} #newlink a:visited{text-decoration:none} #newlink a:hover{text-decoration:underline;} .dept{float:left; width:33%; background-color:#ffffff; } .intro{float:left; background-color:#ffffff; margin-top:10px; } .service{float:left; background-color:#ffffff; margin-top:10px;} #footer{ clear:both; } /*------------------------------------------pages-----------------------------------------*/ #mainNav{ float:left; width:15%; background-color:#99CC66; } #content{ float:right; width:810px; background-color:#339999; } #mainContent{ float:left; width:65%; background-color:#ffffff; padding-top:30px; padding-left:20px; padding-right:20px; } .maincontent{float:left; width:95%; background-color:#00CC66; font-size:16px; color:#ffffff; padding:3px; margin-bottom:20px;} .maincontent1{float:left; width:95%; background-color:#ffffff; font-size:14px; color:#333333; padding:17px; margin-bottom:20px;} .maincontent2{float:left; width:70%; background-color: #FDFEC5; color:#CEFCFF; padding:17px; margin-left:15%; margin-bottom:10px; border:medium outset #FF3300;} .maincontent3{float:left; width:90%; background-color: #FDFEC5; color:#CEFCFF; padding:17px; margin:15%; margin-bottom:10px; border:medium outset #FF3300;} .secondaryNav{ float:right; width:30%; background-color:#FFFF99; } .color{ color:#FFFF00;}
It comes out blue and underlined!
thanks for your help
cass27



the link in question is #newlink)






Bookmarks