FiZiX
02-27-2008, 03:54 PM
This is a new one for me but hopefully somebody else has run in to this. I did some searching and couldn't find any solutions:
I have a page with a menu that's floated left in it's own div and some other divs to the left of the menu. In IE7, the elements in the menu will only display their hover color sporadically when hovered over. However, when there isn't anything to the left of the elements in the menu, the hover property works fine. Here's an example page I made to recreate the bug:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Strict//EN"><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<HTML xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<STYLE>
#accordion {
FLOAT: right;
MARGIN-LEFT: 10px;
OVERFLOW: hidden;
WIDTH: 210px
}
.accordion_toggle {
padding: 0;
MARGIN: 0;
WIDTH: 180px;
LINE-HEIGHT: 30px;
border: 1px solid black;
}
.accordion_toggle:hover {
BACKGROUND: red;
COLOR: #000000
}
</STYLE>
</HEAD>
<BODY>
<DIV>
<DIV id="accordion">
<H1 class="accordion_toggle accordion_toggle_active"> 1</H1>
<H1 class="accordion_toggle">2</H1>
<H1 class="accordion_toggle">3</H1>
<H1 class="accordion_toggle">4</H1>
<H1 class="accordion_toggle">5</H1>
<H1 class="accordion_toggle">6</H1>
<H1 class="accordion_toggle">7</H1>
<H1 class="accordion_toggle">8</H1>
</DIV>
<DIV style="height: 160px; background-color: blue;"></DIV>
</DIV>
</BODY>
</HTML>
Notice that 6, 7, and 8 work fine.
Can any of you think of any hacks or workarounds to squash this bug? Thanks!
I have a page with a menu that's floated left in it's own div and some other divs to the left of the menu. In IE7, the elements in the menu will only display their hover color sporadically when hovered over. However, when there isn't anything to the left of the elements in the menu, the hover property works fine. Here's an example page I made to recreate the bug:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Strict//EN"><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<HTML xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<STYLE>
#accordion {
FLOAT: right;
MARGIN-LEFT: 10px;
OVERFLOW: hidden;
WIDTH: 210px
}
.accordion_toggle {
padding: 0;
MARGIN: 0;
WIDTH: 180px;
LINE-HEIGHT: 30px;
border: 1px solid black;
}
.accordion_toggle:hover {
BACKGROUND: red;
COLOR: #000000
}
</STYLE>
</HEAD>
<BODY>
<DIV>
<DIV id="accordion">
<H1 class="accordion_toggle accordion_toggle_active"> 1</H1>
<H1 class="accordion_toggle">2</H1>
<H1 class="accordion_toggle">3</H1>
<H1 class="accordion_toggle">4</H1>
<H1 class="accordion_toggle">5</H1>
<H1 class="accordion_toggle">6</H1>
<H1 class="accordion_toggle">7</H1>
<H1 class="accordion_toggle">8</H1>
</DIV>
<DIV style="height: 160px; background-color: blue;"></DIV>
</DIV>
</BODY>
</HTML>
Notice that 6, 7, and 8 work fine.
Can any of you think of any hacks or workarounds to squash this bug? Thanks!