Log in

View Full Version : Please help with this stylesheet . . .



MoProAuto
01-30-2010, 05:42 PM
I'm using the Dynamic Drive Menu Generator, found here:

http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/generator.htm

The SOLID BLOCK menu is the one I'm using. The problem I'm having doesn't seem to show up on that website, but it does on mine . . .

The website is www.moproauto.net

The RED letters (GRAPHICS, SPOILERS, etc.) stay red until you click them, then they stay WHITE . . . its like once the site goes into your cache, the letters will stay WHITE until you clear your internet history, then they go back to RED . . . I need the TEXT to stay WHITE all the time . . .

Here is TOPBAR.CSS

.solidblockmenu ul{
margin: 0;
padding: 0;
float: left;
font: bold 13px Arial;
width: 100%;
overflow: hidden;
margin-bottom: 1em;
border: 1px solid #625e00;
border-width: 1px 0;
background: black url(blockdefault.gif) center center repeat-x;
}

.solidblockmenu li{
display: inline;
}

.solidblockmenu li a{
float: left;
color: white;
padding: 9px 11px;
text-decoration: none;
border-right: 1px solid white;
}

.solidblockmenu li a:visited{
color: white;
}

.solidblockmenu li a:hover, .solidblockmenu li a.selected{
color: white;
background: transparent url(blockactive.gif) center center repeat-x;
}

If I completely take out the ".solidblockmenu li a:visited" section, the letters just stay RED, even after you visit them . . .

I'm assuming the text color should be correct (WHITE), but for some reason comes up RED on all browsers I'm using until you click the link . . .

Any ideas???


Jeremy
www.moproauto.net

EDIT: Found the fix . . . the main stylesheet for the website was overriding the CSS for that menu, I changed it from RED to WHITE and that fixed it - so there wasn't an error in the CSS.

Nile
01-30-2010, 11:57 PM
Try:


.solidblockmenu li a:visited, .solidblockmenu li a:active{
color: white;
}