That kind of makes sense but I'm not too clear on how that would apply to my present code.
here is the HTML
[HTML] <!-- NAV -->
<div id="navcontainer">
<ul>
<li><a href="#">Home page</a></li>
<li><a href="#">What's new</a></li>
<li><a href="#">About us</a></li>
<li><a href="SubMain_who.html" target="_top">Who we work with</a></li>
<div id="navcontainersub">
<a href="#">Schools</a>
<a href="localauthorities.html" target="_top">Local Authorities</a>
<a href="#">Charities</a>
</div>
<li><a href="SubMain_services.html" target="_top">Our services</a></li>
<div id="navcontainersub">
<l2><a href="#">Well-Being</a></l2>
<l2><a href="#">EAP</a></l2>
<l2><a href="#">Headspace</a></l2>
<l2><a href="#">Training & development</a></l2>
</div>
<li><a href="#">Contact us</a></li>
</ul>
</div>
<!-- END OF NAV -->[/HTML]
And the CSS
- /* Start of Main Navigation */
-
-
#navcontainer {
-
float: left;
-
padding-top: 0px;
-
padding-bottom: 5em;
-
width: 173px;
-
text-align:left;
-
}
-
-
#navcontainer ul {
-
margin: 0;
-
padding: 0;
-
border: 0;
-
font: 12px Trebuchet MS, verdana, arial, sans serif;
-
letter-spacing: -0.2px;
-
text-indent: 24px;
-
height: 21px;
-
width:171px;
-
list-style:none;
-
}
-
-
#navcontainer a {
-
background: url(../images/nav_back.gif);
-
display: block;
-
width: 171px;
-
padding-top: 6px;
-
height: 20px;
-
}
-
-
#navcontainer a:link, #navcontainer a:visited {
-
color:#000000;
-
text-decoration: none;
-
}
-
-
#navcontainer a:hover {
-
background: url(../images/nav_back_man.gif);
-
color:#FFFFFF;
-
text-decoration: none;
-
padding-top: 6px;
-
height: 20px;
-
}
-
-
#navcontainer:hover, .navcontainersub {
-
background: url(../images/nav_sub_hover.gif);
-
}
-
-
#navcontainer li a#current {
-
background: url(../images/nav_back_man.gif);
-
color:#FFFFFF;
-
text-indent: 24px;
-
text-decoration: none;
-
padding-top: 6px;
-
height: 20px;
-
border: 0px;
-
}
-
-
/*------ Sub Nav ------*/
-
-
#navcontainersub {
-
background: url(../images/nav_sub_hover.gif);
-
color:#666666;
-
font: 11px Trebuchet MS,verdana, arial, sans serif;
-
text-indent: 30px;
-
text-decoration: none;
-
}
-
-
#navcontainersub a {
-
background: url(../images/nav_back_plain.gif);
-
display: block;
-
letter-spacing: -0.3px;
-
width: 171px;
-
padding-top: 5px;
-
height: 18px;
-
}
-
-
#navcontainersub a:link, #navcontainersub a:visited {
-
background: url(../images/nav_sub_hoverw.gif);
-
color:#666666;
-
text-decoration: none;
-
}
-
-
#navcontainersub a:hover {
-
background: url(../images/nav_sub_hover.gif);
-
color:#666666;
-
text-decoration: none;
-
padding-top: 5px;
-
height: 18px;
-
}
-
-
#navcontainersub l2 {
-
background: url(../images/nav_sub_hover.gif);
-
color:#666666;
-
font: 11px Trebuchet MS,verdana, arial, sans serif;
-
text-indent: 30px;
-
}