20 lines
669 B
HTML
20 lines
669 B
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
|
<html lang="en">
|
|
<head>
|
|
<title>CSS Block Box Model: sane horizontal box model and minimum widths</title>
|
|
<style type="text/css">
|
|
.container { width: 5em; }
|
|
.test { margin-left: 2em; border-left: none; padding-left: 0; width: auto; padding-right: 0; border-right: none; margin-right: 2em; }
|
|
.control { padding-left: 2em; }
|
|
div { font-size: xx-large; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>The following two vertical bars should be at the same horizontal position.</p>
|
|
<div class="container">
|
|
<div class="test"><span>|</span></div>
|
|
</div>
|
|
<div class="control"><span>|</span></div>
|
|
</body>
|
|
</html>
|