38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
<html>
|
|
<head>
|
|
<title>CSS 2.1 Test Suite: margin-left</title>
|
|
<style type="text/css">
|
|
body { color: navy; }
|
|
div { font: 10px/1 Ahem; width: 200px; color: orange; }
|
|
img { vertical-align: bottom; }
|
|
.zero {margin-left: 0; text-align: left; background-color: brown;}
|
|
.one {margin-left: 0.5in; text-align: left; background-color: brown;}
|
|
.two {margin-left: 48px; text-align: left; background-color: brown;}
|
|
.three {margin-left: 4.8em; text-align: left; background-color: brown;}
|
|
.four {margin-left: 24%; text-align: left; background-color: brown;}
|
|
</style>
|
|
<link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'">
|
|
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the 'text-align' property">
|
|
</head>
|
|
<body>
|
|
<p>The five "matches" below should be identical.</p>
|
|
<div>
|
|
<p class="zero">
|
|
<img width="48" alt="" src="support/swatch-white.png" height="10">x
|
|
</p>
|
|
<p class="one">
|
|
x
|
|
</p>
|
|
<p class="two">
|
|
x
|
|
</p>
|
|
<p class="three">
|
|
x
|
|
</p>
|
|
<p class="four">
|
|
x
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html> |