I'm using the following code:
/*Het middenboxje plus de achtergrond.*/ div.transbox { width: 400px; height: 600px; margin: 0px 0px; margin-top: 25px; background-color: #CCFFFF; border: 1px solid black; opacity:1.00; /*lagere waardes zijn doorzichtig*/ margin-left: 240px; /*anders lopen deze en de links door elkaar*/ } div.transbox p { color:#66CC33; margin: 30px; } body { background-color:#FFFFFF; } /*Code voor het menu links.*/ ul { float: left; /*Hij blijft links hangen*/ position: fixed; margin-left: 20px; } li { width: 160px; heigth: 20px; border-style: solid; border-width: 1px; border-color: #64acd8; margin-top: 3px; list-style: none; /*Er zullen geen gekke dingetjes voor de onderdelen van de lijst geplaatst worden*/ font-family: Arial; font-size: 110%; cursor: default; } #links a { text-decoration: none; color:#66CC33; margin-left: 5px; /*houdt de tekst van de link net iets van het randje van de li border (om de link)*/ cursor: default; } #links a:hover { color:#CC0044; cursor: default; } #links a:active { text-decoration: none; color:#66CC33; } #links a:visited { text-decoration: none; color:#66CC33; }
if you are using the opacity attribute at 1.0 why even have it? Is this for a widget? trim your #links a:hover a:active and a:visited for they will inherit the values from #links a just leave the color. You have links as an id so I am thinking you have you would have to set the
<div id="links"><a href="http://whatever/">whatever</a><a href="http://whatever/">whatever</a><a href="http://whatever/">whatever</a></div>
right? Or are they in a list in that case you would want li a, li a:hover, etc.., Where are these anchors? #links a:active, #links a:hover {color:#66CC33;} please show the html or php markup.