php - How can I let this div expand and overflow it's container in IE8? -


i found nice css3 dropdown script, can't abandon ie8 users because last read still 10% of visits. so, tried this:

<div id="containerdiv" style="height: 35px; overflow: visible;" >  <a href="#"><img src="images/1.jpg"></a> <a href="#"><img src="images/2.jpg" onmouseenter="document.getelementbyid('navdd1').style.display = ''"></a> <div id="navdd1"     style="           display: none;            margin-left: 100px;            background-image:url('images/blank_dropdown.jpg');           line-height: 35px;           width: 100px;"    onmouseleave="document.getelementbyid('navdd1').style.display = 'none'">   <a href="#">link 1</a><br>   <a href="#">link 2</a><br> </div> </div> 

the mouseenter , mouseleave seem want, un-hidden div stretches container instead of overflowing it. i'll use php detect browser , present when on ie < 9. ironically, overflow portion of want in ff, of course mouseleave not. how make work?

you should set #navdd1 in position:absolute;.

#navdd1 {           display: none;            margin-left: 100px;            background-image:url('images/blank_dropdown.jpg');           line-height: 35px;           width: 100px;           position:absolute; } 

and #containerdiv in position:relative; give coordonates #navdd1.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -