Hi all,
I am trying to create a navigation bar down the left side of the page that will have one level of popup menus. Basically if you hover the mouse over a menu item a sub-list will pop up to the right of the navbar.
I have it working decently in Firefox, but IE is not working. I even downloaded an .htc file to handle the hover behavior. The code is below:
This is the navbar code:
<p>
<ul>
<li><a class="nav" style="text-align:right;" href="http://www.caje.org/DEV/index.html">HOME</a></li>
<br><li><a class="nav" style="text-align:right;" href="http://www.caje.org/donate/intnav.php">Make a Donation</a>
<ul>
<li><a class="nav" href="http://www.caje.org/donate/thecase.php">The Case for Giving</a></li>
<br><li><a class="nav" href="http://www.caje.org/donate/cards.php">Tribute Cards</a></li>
<br><li><a class="nav" href="http://www.caje.org/donate/confsponsor.php">CAJE 33 Sponsorship Opportunities</a></li>
</ul>
</li>
</ul>
This is the relevant CSS code:
body {
behavior:url(http://www.caje.org/DEV/scripts/csshover.htc)
text-align:center;
}
ul {/*top level box*/
list-style: none;
/*text-align: right;
color: gray;
font-size:12pt;*/
position: relative;
top: 0px;
right: 0px;
border:thin solid blue;
}
ul li {/*top level content*/
float: left;
position: relative;
top: 0px;
/*right: 0px;*/
font-size:12pt;
font-family: "Arial";
font-weight: bold;
line-height: normal;
color: gray;
text-decoration: none;
/*background-color: white;
text-align: right;*/
border:thin solid purple;
}
ul li ul {/*first pop-out level box*/
list-style: none;
position: absolute;
top: 18px;
left: 0px;
display: none;
width: 100%;
text-align: right;
color: gray;
background-color: #66CCCC;
}
ul li:hover ul {
display: block;
z-index: 5;
}
ul li ul {/*first pop-out level content*/
list-style: none;
position: absolute;
left: 100px;
font-size: 9pt;
text-align: left;
color: gray;
/*background-color: #66CCCC;*/
border:thin solid yellow;
}
You can see the page here: http://caje.org/DEV/home/index_new1.php. It works in FF, but not IE.
Thanks,
Yoram