| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
| <html> |
| <head> |
| <title>CSS 2.1 Test Suite: float</title> |
| <style type="text/css"> |
| p { margin: 0; padding: 0; font-size: 3em; } |
| .eight {float: left; width: 25%; |
| background-color: #000080; color: white; |
| padding: 0; margin: 0} |
| .nine {float: right; width: 25%; |
| background-color: teal; color: white; |
| padding: 0; margin: 0} |
| </style> |
| <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"> |
| </head> |
| <body> |
| <div class="eight"> |
| <p> |
| ⇦ This blue box should be on the left. |
| </p> |
| </div> |
| <div class="nine"> |
| <p> |
| This teal box should be on the right. ⇨ |
| </p> |
| </div> |
| <p> |
| This text should be in between a blue box on the ⇦left and a teal box on the right⇨. |
| </p> |
| </body> |
| </html> |