| 12345678910111213141516 |
- <!doctype html>
- <html><head><meta charset="utf-8"><title>032 float text wrap</title>
- <style>
- html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
- body{padding:10px}h1{font-size:20px;margin:0 0 8px}p{margin:0 0 10px}
- .wrap{width:400px}.float{float:left;width:100px;height:100px;background:#cc3333}
- .text{font-size:13px;line-height:18px}.clear{clear:both;height:28px;background:#333;color:#fff;padding-left:4px}
- table{border-collapse:collapse}td{padding:0;vertical-align:top}
- </style></head><body>
- <h1>032 · float text wrap and clear</h1>
- <p>Text must wrap to the right of the red float, then the dark bar clears both.</p>
- <div class="wrap">
- <div class="float"></div>The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs. How vexingly quick daft zebras jump! The five boxing wizards jump quickly.
- <div class="clear">cleared</div>
- </div>
- </body></html>
|