Because you establish a new Block Formatting Context when using overflow
with anything ofther then visible
(link to the w3.org specs).
More Related Contents:
- Could someone explain this CSS code?
- How to Create Grid/Tile View? [duplicate]
- What does the CSS rule “clear: both” do?
- Floating elements within a div, floats outside of div. Why?
- How to float 3 divs side by side using CSS?
- CSS Floating Divs At Variable Heights [duplicate]
- Advantages of using display:inline-block vs float:left in CSS
- How to create equal height columns in pure CSS [duplicate]
- Aligning two divs side-by-side [duplicate]
- How to vertically middle-align floating elements of unknown heights?
- Why does CSS float not change the width of the following div?
- Make child visible outside an overflow:hidden parent
- Float right and position absolute doesn’t work together
- margin-top not working with clear: both
- Make outer div be automatically the same height as its floating content
- Split Div Into 2 Columns Using CSS
- How to get Floating DIVs inside fixed-width DIV to continue horizontally?
- CSS text ellipsis when using variable width divs
- Make floating child visible outside an overflow:hidden parent
- CSS container div not getting height
- Div side by side without float
- Bootstrap change div order with pull-right, pull-left on 3 columns
- Expanding the parent container with 100% height to account for floated content
- How do I keep CSS floats in one line?
- CSS to stop text wrapping under image
- Creating CSS3 Circles connected by lines
- How to fix Internet explorer 7 bug when using percentage widths for layout?
- CSS Floating Divs with different height are aligned with space between them
- Stacking DIVs on top of each other?
- CSS: clean solution to the margin collapse issue when floating an element