navbar hover issue in ie7
Posted
by Joel
on Stack Overflow
See other posts from Stack Overflow
or by Joel
Published on 2010-03-14T05:26:33Z
Indexed on
2010/03/14
6:05 UTC
Read the original article
Hit count: 326
I'm having a problem with a child list not hovering correctly in IE7. Other browsers and IE7 seem to work fine.
Here is the site: http://rattletree.com/index_1.php
If you hover over the nav bars you'll see the sub-list come into view. You can see that the arrow image is not below the navbar in IE7 only.
html:
<div id="navbar2">
<ul id="navbar">
<li id="index"><a href="index.php">About Rattletree</a></li>
<li id="upcomingshows"><a href="upcomingshows.php">Calendar</a></li>
<li id="booking"><a href="booking.php">Contact</a>
<ul class="innerlist">
<li class="innerlist"><img class="arrowAdjust" src="images/curved_arrow.png"</img><a href="#">Booking Information</a></li>
<li class="innerlist"><a href="#">Press</a></li>
</ul>
</li>
<li id="instruments"><a href="instruments.php">The Band</a>
<ul class="innerlist">
<li class="innerlist"><img class="arrowAdjust" src="images/curved_arrow.png"</img><a href="#">The Instruments</a></li>
<li class="innerlist"><a href="#">The Players</a></li>
</ul>
</li>
<li id="classes"><a href="classes.php">Sights & Sounds</a>
<ul class="innerlist">
<li class="innerlist"><img class="arrowAdjust" src="images/curved_arrow.png"</img><a href="#">Listen</a></li>
<li class="innerlist"><a href="#">Photos</a></li>
<li class="innerlist"><a href="#">Video</a></li>
</ul>
</li>
<li id"classes"><a href="classes.php">Workshops & Classes</a></li>
</ul>
</div>
and css:
/* OUTER LIST STYLING */
div#navbar2 {
position:relative;
width: 100%;
border-top: solid #000 1px;
border-bottom: solid #546F8B 1px;
background-color: #546F8B;
}
div#navbar2 ul#navbar {
padding: 0px;
margin: 10px 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
letter-spacing:1px;
color: #FFF;
white-space: nowrap;
display:block;
}
div#navbar2 ul#navbar li {
position:relative;
margin: 0px;
padding:0px;
list-style-type: none;
display:inline;
}
div#navbar2 li a {
text-decoration: none;
color: #fff;
margin:0;
padding: 11px 12px;
}
div#navbar2 li a:link {
color: #FFF:
}
div#navbar2 li a:visited {
color: #ffffff;
}
div#navbar2 li a:hover {
color: #000;
background-color: #FDFFC9;
}
/* INNER LIST STYLING */
div#navbar2 ul#navbar li ul.innerlist{
display: none;
color:#000;
}
div#navbar2 ul#navbar li ul.innerlist li{
color:#000;
}
div#navbar2 ul#navbar li:hover ul.innerlist {
position: absolute;
display: inline;
left: 0;
width: 100%;
margin: 30px 0 0px 0px;
padding: 0;
color:#000;
}
div#navbar2 ul#navbar li.innerlist a {
text-decoration: none;
font-weight:bold;
color: #000;
padding: 10px 15px 20px 15px;
margin:0;
}
div#navbar2 li.innerlist a:link {
color: #000:
}
div#navbar2 li.innerlist a:visited {
color: #000;
}
div#navbar2 ul#navbar li.innerlist a:hover {
color: #e62d31;
background-color:transparent;
}
img.arrowAdjust{
padding:0px 0 0 20px;
margin:0;
}
© Stack Overflow or respective owner