Hi,
I'm having some trouble with css and inheritance on my site ..
the links in the main content are turning white or the menu link are turning black.. I think this is because I made a mistake with inheritance .. the menu links should always be white and the content links should always be black..
can any of you see my error?
this is the codeand this is the cssHTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="nl"> <body> </div><div class=menu id=menu align=center> <span class="menuitem">item1</span> </div> <div id="container" class="container"> <div class="left" id="left"> content with links through a rte. </div><div class="right" id="right"> <div class="subcontentimage"> the right colomn with content through rte </div> </div></div> <div class="clear"> </div> </div> <!-- end columns --> <div class="footer"> <div class="footerpadding"> footer info.. </a> </div> </div> </body> </html>
Code:body { margin:0; padding:0; background:white; color:#333; font-size:76%; font-family: verdana,helvetica,sans-serif; text-align:left; } h1 { font-size:1.8em; } h2 { font-size:1.6em; } h3 { font-size:1.3em; } .menuitem A:link, A:visited, A:active, A:Hover { color: white; text-decoration: none; } .activemenuitem A:link, A:visited, A:active, A:Hover { color: white; text-decoration: none; } .subcontent { text-align: left; } .menuitem { position: relative; top: 5px; left: 0px; padding: 5px; padding-right : 30px; padding-left : 30px; margin-right: 0px; color: white; font-size:1.1em; } .activemenuitem { position: relative; top: 5px; left: 0px; padding: 5px; padding-right : 30px; padding-left : 30px; margin-right: 0px; color: white; font-size:1.1em; color:white; font-weight:bold; } .menu { margin:0 auto; width:760px; height:30px; line-height:30px; background-color: red; } #container { margin:0 auto; width:760px; /* border-left:1px solid #333; border-right:1px solid #333; */ text-align:left; background-color:white; } #container A:link, A:visited, A:active, A:Hover { color:black; }
thanks in advance
Peanuts











Bookmarks