18 lines
596 B
HTML
18 lines
596 B
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
|
<html lang="en">
|
|
<head>
|
|
<title>CSS Block Box Model: block widths with position:relative</title>
|
|
<style type="text/css">
|
|
.control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
|
|
.outer { position: relative; width: 300px; height: 100px; background: red; }
|
|
.inner { width: 200%; height: 200%; font: 100px/1 Ahem; color: green; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="control">Ahem_font_required_for_this_test.</div>
|
|
<div class="outer">
|
|
<div class="inner">XXX</div>
|
|
</div>
|
|
</body>
|
|
</html>
|