juice1 Posted July 15, 2009 Share Posted July 15, 2009 Heya,I have this strange problem with my navigation links. I put text decoration none on the css but on some browsers it shows half of them still being underlined.I cannot seem to find what is wrong with it, I can avoid it by changing the destination link name but thats not a solution. Heres my html and css. <body id="body"><div class="container"> <div class="header"> <div class="logo">MYLOGO</div> <div class="menu"> <div class="link"><a href="index.html">Home</a></div> <div class="link"><a href="portfolio.html">Portfolio</a></div> <div class="link"><a href="about.html">About</a></div> <div class="link"><a href="blog.html">Blog</a></div> <div class="link"><a href="contact.html">Contact</a></div> </div> </div></body> a:link { color:#FFFFFF; text-decoration:none;}a:visited { color:#FFFFFF;}a:hover { color:#FFFFFF;}a:active { color:FFFFFF;}.content_container { width:960px; height:540px; background-color:#0099FF;}.header { background-image:url(background/header.gif); background-repeat:no-repeat; height:45px;}.logo { width:200px; height:45px; margin-left:100px; background-color:#EB4038; float:left; color:#FFFFFF;}.menu { height:auto; width:490px; height:45px; float:right;}.link { width:auto; height:auto; float:left; margin:10px 25px 0px 0px; font-size:24px;} Right now, safari underlines 'home' and 'about'.IE underlines 'home' and 'contacts'.chrome on pc underlines just 'home'.firefox is all good on pc/ mac.Anyone help please?Thanks Link to comment Share on other sites More sharing options...
dsonesuk Posted July 16, 2009 Share Posted July 16, 2009 try a {text-decoration: none;} or div.link a {text-decoration: none;}at the moment you have removed the underline from a:link state only, but will revert to underline for visited, active etc. Link to comment Share on other sites More sharing options...
juice1 Posted July 16, 2009 Author Share Posted July 16, 2009 Gah! I'm so stupid...of course, do it for the rest!Thanks for pointing out the beyond obvious.........that was embarrassing... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.