Absolute positioned div not hidden.
Posted
by
Cristy
on Stack Overflow
See other posts from Stack Overflow
or by Cristy
Published on 2010-12-29T16:49:21Z
Indexed on
2010/12/29
16:54 UTC
Read the original article
Hit count: 243
I have this
<div id="container">
<div id="div1"></div>
<div>
Now, let's assume that:
- the "container" has a width of 300px
- the "container" has overflow: hidden;
- the "div1" has a width of 1000px;
- the "div1" is absolute positioned, top:0px,left:0px;
The problem:
The "div1" is not hidden, it overflows the "container" but it's still showing :(.
If I simply remove the "position:absolute" it will work.
How can I hide the overflow of "div1" ?
© Stack Overflow or respective owner