blob: 998e0900b1850cfd5a57a4ba4562efaa5242d485 [file] [log] [blame]
<!doctype html>
<style>
.test_paragraph {
margin-top: 1em;
margin-bottom: 1em;
text-align: justify;
font-size: 10px;
font-family: Ahem;
-webkit-font-smoothing: none;
}
#top_paragraph {
margin-top: 1em;
margin-bottom: 1em;
}
#region1 {
border: 1px solid black;
width: 390px;
height: 90px;
padding: 5px;
}
#first-box1 {
border: 1px solid blue;
border-bottom: none;
}
#second-box1 {
margin:10px;
border: 1px solid green;
border-bottom: none;
width: 366px;
height: 83px;
}
#region2 {
border: 1px solid black;
width: 290px;
height: 110px;
padding: 5px;
}
#first-box2 {
border: 1px solid blue;
border-top: none;
border-bottom: none;
}
#second-box2 {
margin-left:10px;
margin-top: -5px;
padding: 0px;
border: 1px solid green;
border-top: none;
border-bottom: none;
width: 266px;
height: 120px;
}
#first-paragraph3 {
margin-top: 0px;
}
#region3 {
border: 1px solid black;
width: 390px;
height: 290px;
padding: 5px;
}
#first-box3 {
border: 1px solid blue;
border-top: none;
}
#second-box3 {
margin:10px;
margin-top: -5px;
border: 1px solid green;
border-top: none;
width: 366px;
}
#imgFloat1 {
float: left;
background-color:green;
width: 130px;
height: 110px;
}
#imgFloat2 {
float: right;
background-color:yellow;
width: 130px;
height: 130px;
}
</style>
<div id="top_paragraph">In the example below, the first float pushes content into region #2, and the second float pushes both floats into region #3.</div>
<div id="content">
<div id="region1">
<div id="first-box1">
<div id="second-box1"></div>
</div>
</div>
<div id="region2">
<div id="first-box2">
<div id="second-box2"></div>
</div>
</div>
<div id="region3">
<div id="first-box3">
<div id="second-box3">
<div class="test_paragraph" id="first-paragraph3">This <img id="imgFloat1"><img id="imgFloat2">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.</div>
<div class="test_paragraph" id="second-paragraph3">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.</div>
<div class="test_paragraph">This line of text should not get out of the region.</div>
</div>
</div>
</div>
</div>