<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
<title>CSS 2.1 Test Suite: Floating Elements</title> | |
<style type="text/css"> | |
div, p { color: navy; } | |
div { border: solid blue; padding: 1em; width: 14em; margin: 10px; } | |
div p { margin: 0; width: 5em; float: left; } | |
</style> | |
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats"> | |
</head> | |
<body> | |
<p>There should be five numbers, in numerical order, below: on the first line 1, 2 and 3, on the second, 4 and 5.</p> | |
<div> | |
<p> 1 </p> | |
<p> 2 </p> | |
<p> 4 </p> | |
3 | |
5 | |
</div> | |
</body> | |
</html> |