OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .multicol { |
| 4 width: 330px; |
| 5 height: 200px; |
| 6 border: 3px solid #bbb; |
| 7 line-height: 20px; |
| 8 } |
| 9 .left, .right { |
| 10 padding: 5px 5px; |
| 11 text-align: center; |
| 12 background-color: steelblue; |
| 13 } |
| 14 .float_content { |
| 15 background-color: skyblue; |
| 16 } |
| 17 .left { float: left; } |
| 18 .right { float: right; } |
| 19 .column1, .column2 { |
| 20 float: left; |
| 21 width: 160px; |
| 22 } |
| 23 .column1 { |
| 24 margin-right: 10px; |
| 25 } |
| 26 .column1 > .left, .column1 > .right { |
| 27 height: 110px; |
| 28 } |
| 29 .column2 > .left, .column2 > .right { |
| 30 padding-top: 0; |
| 31 } |
| 32 </style> |
| 33 |
| 34 <p>There should be two floats: one left, one right. Both should wrap into the |
| 35 second column. The lines <em>left6</em>, <em>left7</em>, |
| 36 <em>right6</em>, <em>right7</em> (and their backgrounds) should appear |
| 37 <em>entirely</em> in the second column.</p> |
| 38 <div class="multicol"> |
| 39 <div class="column1"> |
| 40 First<br> |
| 41 First<br> |
| 42 First<br> |
| 43 First<br> |
| 44 <div class="left"> |
| 45 <span class="float_content"> |
| 46 left1<br> |
| 47 left2<br> |
| 48 left3<br> |
| 49 left4<br> |
| 50 left5<br> |
| 51 </span> |
| 52 </div> |
| 53 <div class="right"> |
| 54 <span class="float_content"> |
| 55 right1<br> |
| 56 right2<br> |
| 57 right3<br> |
| 58 right4<br> |
| 59 right5<br> |
| 60 </span> |
| 61 </div> |
| 62 First<br> |
| 63 First<br> |
| 64 First<br> |
| 65 First<br> |
| 66 First<br> |
| 67 First<br> |
| 68 </div> |
| 69 <div class="column2"> |
| 70 <div class="left"> |
| 71 <span class="float_content"> |
| 72 left6<br> |
| 73 left7<br> |
| 74 </span> |
| 75 </div> |
| 76 <div class="right"> |
| 77 <span class="float_content"> |
| 78 right6<br> |
| 79 right7<br> |
| 80 </span> |
| 81 </div> |
| 82 Second<br> |
| 83 Second<br> |
| 84 Second<br> |
| 85 Second<br> |
| 86 Second<br> |
| 87 Second<br> |
| 88 Second<br> |
| 89 Second<br> |
| 90 Second<br> |
| 91 Second<br> |
| 92 </div> |
| 93 </div> |
OLD | NEW |