| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 | |
| 3 <style> | |
| 4 | |
| 5 #blue-box-1 { | |
| 6 border: 1px solid blue; | |
| 7 } | |
| 8 | |
| 9 #blue-box-2 { | |
| 10 border-bottom: 1px solid blue; | |
| 11 border-left: 1px solid blue; | |
| 12 border-right: 1px solid blue; | |
| 13 } | |
| 14 | |
| 15 #green-box-1 { | |
| 16 margin:auto; | |
| 17 border: 1px solid green; | |
| 18 padding-bottom:1px; | |
| 19 width:75% | |
| 20 } | |
| 21 | |
| 22 #green-box-2 { | |
| 23 margin:auto; | |
| 24 border-bottom: 1px solid green; | |
| 25 border-left: 1px solid green; | |
| 26 border-right: 1px solid green; | |
| 27 width:75% | |
| 28 } | |
| 29 | |
| 30 #region1, #region2, #region3 { | |
| 31 border: 1px solid black; | |
| 32 } | |
| 33 | |
| 34 #region1 { | |
| 35 width: 270px; | |
| 36 height: 95px; | |
| 37 padding-top:5px; | |
| 38 padding-left:5px; | |
| 39 padding-right:5px; | |
| 40 overflow:hidden; | |
| 41 } | |
| 42 | |
| 43 #region2 { | |
| 44 width: 390px; | |
| 45 height: 180px; | |
| 46 padding-left:5px; | |
| 47 padding-right:5px; | |
| 48 } | |
| 49 | |
| 50 #region3 { | |
| 51 width: 220px; | |
| 52 height: 120px; | |
| 53 } | |
| 54 | |
| 55 .float { | |
| 56 width:50px; | |
| 57 height:50px; | |
| 58 background-color: lime; | |
| 59 } | |
| 60 | |
| 61 .left { | |
| 62 float: left | |
| 63 } | |
| 64 | |
| 65 .right { | |
| 66 float: right | |
| 67 } | |
| 68 </style> | |
| 69 | |
| 70 <body> | |
| 71 <!--<p>The first and last lines of text in the regions below should be clipped t
o the green box. The overflow | |
| 72 section sizes itself and clips differently in each region.</p>--> | |
| 73 <div id="region1"> | |
| 74 <div id="blue-box-1"> | |
| 75 <div id="green-box-1"> | |
| 76 <div class="float left"></div> <div class="float right"></div> | |
| 77 <p>These lines will not spill out of the regions. These lines will n
ot spill out</p> | |
| 78 </div> | |
| 79 </div> | |
| 80 </div> | |
| 81 <div id="region2"> | |
| 82 <div id="blue-box-2"> | |
| 83 <div id="green-box-2"> | |
| 84 of the regions. These lines will not spill out of the regio
ns. These lines will not spill out of the regions. | |
| 85 <p>These lines will not spill out of the regions. These lin
es will not spill out of the regions. | |
| 86 These lines will not spill out of the regions. These lines w
ill not spill out of the regions. </p> | |
| 87 </div> | |
| 88 </div> | |
| 89 </div> | |
| 90 <div id="region3"></div> | |
| OLD | NEW |