Hi, I have posted another similar question on your forum - here: http://www.webdeveloper.com/forum/sh...d.php?t=259802
But now the client wants a drop down menu on this website, and I am having a very similar problem with the CSS styling - Specifically hover states for this.
You will see what the issue is if you preview below. The hover states are not matching up with the navigation bar and I just don't know how to get this right. Also, The secondary navigation should start at the bottom of the NavBar - not as far up as it is.
.mattblackmenu li a:hover{
background-image:url(../images/navHover.jpg);
background-repeat:repeat-x;
height:47px;
}
.ddsubmenustyle, .ddsubmenustyle ul{ /*topmost and sub ULs, respectively*/
font: normal 13px Verdana;
margin: 0;
padding: 0;
position: absolute;
left: 0;
background: #929292;
visibility: hidden;
z-index: 100;
text-align:left;
padding-top:7px;
padding-bottom:7px;
}
.ddsubmenustyle li {
list-style:none;
}
.ddsubmenustyle li a{
display: block;
width: 109px; /*width of menu (not including side paddings)*/
color: #000000;
text-decoration: none;
font-family:verdana;
font-size:13px;
padding:4px;
padding-left:29px;
}
* html .ddsubmenustyle li{ /*IE6 CSS hack*/
display: inline-block;
width: 170px; /*width of menu (include side paddings of LI A*/
list-style-type:none;
}
.ddsubmenustyle li a:hover{
background-color: #afafaf;
color: #000000;
}
Yes, I have. It all does the same thing.
The problem is that I need my text to sit in the middle - with the NavDivider -BUT the hover state must take up the entire height of that navBar - and so I cant get it to work, but I know there must be a way.
Bookmarks