So I'm having a pretty annoying issue with IE that I just cannot seem to figure out. The premise is pretty simple I have an image and on hover it display some text with a semi-opaque background. It works great in Firefox, Safari, and Chrome. However, in IE it is not stacking the divs on top of each other and not obeying the float attribute. Here's the CSS:
.new-product-link {
background:#E0E0E0;
height:342px;
}
.new-product-link .new-container {
float:left;
width:94px;
height:94px;
padding:3px;
margin:6px 5px;
position:relative;
left:2px;
border:1px solid #BBB;
}
.new-product-link .new-container:hover {
border:1px solid #777;
cursor:pointer;
}
.newProduct {
float:left;
height:100px;
width:100px;
position:relative;
bottom:97px;
right:3px;
background:#777;
opacity:0.75;
display:none;
}
.newProduct span {
position:relative;
top:20px;
color:#F0F0F0;
font:bold 14px Arial;
}
.newProduct span span {
font:11px Arial;
}
JS:
<script>
$(".new-container").hover(
function () {$(this).children("div").fadeIn(350);},
function () {$(this).children("div").fadeOut(100);}
);
</script>
HTML:
<div align="center" class="new-container">
<img src="http://www.example.com/image.png">
<div class="newProduct">
<span class="newProduct-item">Item Number<br />
<span>Click for Additional<br />Information</span>
</span>
</div>
</div>
For a working example, please see HERE. Everything seems pretty simple, and works fine in the other major browsers, hopefully someone can see the err of my ways. Thanks for the help and suggestions.