blob: fff70e3300ee604bfff189134ef9e70cc13890e7 [file] [log] [blame]
<!doctype html>
<style>
#content {
-webkit-flow-into: flow1;
text-align: justify;
padding: 5px;
font-size: 10px;
font-family: Ahem;
-webkit-font-smoothing: none;
}
#first-box {
border: 1px solid blue;
}
#second-box {
margin:10px;
border: 1px solid green;
}
#float1 {
float: left;
width: 130px;
height: 110px;
background-color:green
}
#float2 {
float: right;
width: 130px;
height: 130px;
background-color:yellow
}
#region1, #region2, #region3 {
border: 1px solid black;
-webkit-flow-from: flow1;
}
#region1 {
width: 400px;
height: 100px;
}
#region2 {
width: 300px;
height: 120px;
}
#region3 {
width: 400px;
height: 300px;
}
</style>
<p>In the example below, the first float pushes content into region #2, and the second float pushes both floats into region #3.</p>
<div id="content">
<div id="first-box">
<div id="second-box">
<p><img id="float1"> <img id="float2"> This line of text should not get out of the region. This line of text should not get out of the region. This line of text should not get out of the region. This line of text should not get out of the region.</p>
<p>This line of text should not get out of the region. This line of text should not get out of the region. This line of text should not get out of the region. This line of text should not get out of the region.</p>
<p>This line of text should not get out of the region.</p>
</div>
</div>
</div>
<div id="container">
<div id="region1"></div>
<div id="region2"></div>
<div id="region3"></div>
</div>