blob: 6aba2ce0317042101952934f20a941e7934f8afd [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Reference</title>
<link rel="author" title="Adobe" href="http://html.adobe.com/">
<link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com">
<link rel="help" href="http://dev.w3.org/csswg/css-shapes-1/#shape-margin-property">
<meta name="flags" content="ahem">
<head>
<style>
.container {
font: 20px/1 Ahem, sans-serif;
line-height: 20px;
width: 100px;
height: 60px;
border: 1px solid black;
color: green;
display: inline-block;
background-color: red;
}
#float-left {
float: left;
width: 100px;
height: 20px;
background-color: green;
}
#float-right {
float: right;
width: 100px;
height: 20px;
background-color: green;
}
</style>
<body>
<p>This should display two green rectangles. You should not see any red.</p>
<div class="container">
XXXXX
<div id="float-left">
</div>
XXXXX
</div>
<div class="container">
XXXXX
<div id="float-right">
</div>
XXXXX
</div>
</body>