| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
| <title>CSS 2.1 Test Suite: Floating Elements</title> |
| .control { padding: 1em; } |
| .control div { width: 10em; background: navy; color: yellow; } |
| .control div.right { margin-left: 5em; text-align: right; } |
| .test { width: 15em; margin: 1em; } |
| .test div { margin: 0; padding: 0; background: red; } |
| .test p { margin: 0; padding: 0; width: 10em; background: navy; color: yellow; } |
| .test p.left { float: left; text-align: left; } |
| .test p.right { float: right; text-align: right; } |
| <link title="9.5 Floats" href="http://www.w3.org/TR/CSS21/visuren.html#floats" rel="help"> |
| <link title="16.2 Alignment: the 'text-align' property" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" rel="help"> |
| <p>The two patterns below should be identical, with no red present.</p> |
| <div class="left"> ☮ </div> |
| <div class="right"> ☮ </div> |