I have two divs on the page with the same width and height.
if I give a float: left to the first div, the second div goes up (which is fine, because the moved item is pulled out of the normal document flow)
But why is the contents of the div still showing at the default stack position?
JsFiddle is below
http://jsfiddle.net/xR9Rd/2/
<div class="box0">Box 0</div>
<div class="box1">Box1</div>
.box0 {
width: 100px;
height: 100px;
background-color: brown;
float: left;
}
.box1 {
width: 100px;
height: 100px;
background-color: red;
}
source
share