blob: 1aef6ffcba7f5432b5efdcf8b33e4ccb128c89a5 [file] [log] [blame]
<title>CSS 2.1 Test Suite: Floating Elements</title>
<style type="text/css">
p { color: navy; }
.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 rel="help" href="" title="9.5 Floats">
<link rel="help" href="" title="16.2 Alignment: the 'text-align' property">
<p>The two patterns below should be identical, with no red present.</p>
<div class="control">
<div class="left">  * </div>
<div class="right"></div>
<div class="test">
<p class="left">  * </p>
<p class="right"></p>