blob: 4e9741038eb5980220e7ab7b52b6072094eb0569 [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/#relation-to-box-model-and-float-behavior">
<meta name="flags" content="ahem">
<head>
<style>
.container {
font: 20px/1 Ahem, sans-serif;
width: 100px;
height: 40px;
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
XXXXX
</div>
<div class="container">
XXXXX
XXXXX
</div>
</body>