Forum Moderators: not2easy
<div id="navigation">
<ul> <!--======1st level unordered=============-->
<li><a href="default.html"> Home</a></li> <!--======1st level=============-->
<li>Services <!--======1st level=============-->
<ul><!--======2nd level unordered=============-->
<li><a href="services.html#nursing">Skilled Nursing</a></li> <!--======2nd level=============-->
<li><a href="services.html#ps">Provider Services</a></li><!--======2nd level=============-->
<li><a href="services.html#aide">Home Health Aide</a></li><!--======2nd level=============-->
<li><a href="services.html#msw">Medical Social Work</a></li><!--======2nd level=============-->
<li><a href="#">Rehabilitaion</a>
<ul>
<li><a href="services.html#pt">Physical Therapy</a></li><!--======3rd level=============-->
<li><a href="services.html#ot">Occupational Therapy</a></li><!--======3rd level=============-->
</ul>
</li><!--========close rehab====-->
</ul>
</li>
<li><a href="conInfo.html">Contact info</a></li> <!--======1st level=============-->
<li><a href="faqs.html">FAQs</a></li> <!--======1st level=============-->
<li><a href="news.html">News</a></li> <!--======1st level=============-->
<li><a href="portal.html">Portal</a></li> <!--======1st level=============-->
</ul>
</div>
<!--==============================end navigation=================================================-->
/* Inserted just for the example so you can observe child and descendant selectors - see how this hides every ul that is a child of an li - which means it hides both the second and third level fly-outs */
[edit]clarifying egs[/edit]
li > ul {
display:none
}
/*Using descendent selectors, show the 2nd level flyout when hovering the 1st level */
#navigation ul li:hover ul {
display:block;
}
/*but at the same time, keep the third level hidden until the 2nd level is hovered */
#navigation ul li:hover ul li ul {
display:none;
}
/* Now, show the third level flyout when the 2nd level is hovered */
#navigation ul li ul li:hover ul {
background-color:#007d00;
display: block;
}