tags:

views:

80

answers:

1

I need some help with CSS overflow in IE, namely IE 7. I want the nested div content to be hidden.

<div style="width:100px; height:100px; overflow:hidden; border:1px dashed red;">
    <div style="width:60px; left:80px; position:relative;">hidden stuff goes here</div>
</div>

It works fine in FF but in IE 7, the overflow content is not hidden.

A: 

Add display:none to the inner div and it will be hidden. I think you are mis-understanding the use of overflow:hidden though...

<div style="width:100px; height:100px; overflow:hidden; border:1px dashed red;">
        <div style="width:60px; left:80px; position:relative; display:none;">hidden stuff goes here</div>
    </div>
TGuimond
It's quite possible that you're right about me misunderstanding the use of overflow:hidden as I'm still new at all of this. This was part of a scrollable jquery widget and the CSS for IE was baffling me. However, I removed position:relative and used margin-left instead of left and I got the results that I needed. Thanks for helping out though!
Spencer Carnage