98 lines
2.3 KiB
HTML
98 lines
2.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||
<html>
|
||
<head>
|
||
<title>CSS 2.1 Test Suite: float</title>
|
||
<style type="text/css">
|
||
.a { color: navy; }
|
||
div.yellow, div.blue, div.red, div.green {
|
||
width: 60px; padding: 20px; margin: 10px;
|
||
border: 20px solid black; float: left; text-align: center;
|
||
}
|
||
div.yellow {margin-left: 0px; background: yellow; color: black;}
|
||
div.blue {background: blue; color: white;}
|
||
div.red {background: red; color: black;}
|
||
div.green {background: green; color: white;}
|
||
div.below {clear: both;}
|
||
table {margin: 10px 0px;}
|
||
</style>
|
||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
|
||
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-position" title="9.5.1 Positioning the float: the 'float' property">
|
||
</head>
|
||
<body>
|
||
<p class="a">
|
||
Below you should see four blocks side by side followed by a
|
||
matching cross section of the four blocks.
|
||
</p>
|
||
<div class="yellow">
|
||
<p>
|
||
Yellow
|
||
</p>
|
||
</div>
|
||
<div class="blue">
|
||
<p>
|
||
Blue
|
||
</p>
|
||
</div>
|
||
<div class="red">
|
||
<p>
|
||
Red
|
||
</p>
|
||
</div>
|
||
<div class="green">
|
||
<p>
|
||
Green
|
||
</p>
|
||
</div>
|
||
<div class="below">
|
||
<table cellspacing="0" cellpadding="0">
|
||
<tr>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
<td width="100" style="background: yellow">
|
||
|
||
</td>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
<td width="20" style="background: white">
|
||
|
||
</td>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
<td width="100" style="background: blue">
|
||
|
||
</td>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
<td width="20" style="background: white">
|
||
|
||
</td>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
<td width="100" style="background: red">
|
||
|
||
</td>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
<td width="20" style="background: white">
|
||
|
||
</td>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
<td width="100" style="background: green">
|
||
|
||
</td>
|
||
<td width="20" style="background: black">
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</body>
|
||
</html> |