summaryrefslogtreecommitdiff
path: root/legacy/works/percentage-height-inline-block.html
blob: ccbb361a7e0dd285e41426a74a0e22cd4f2a1ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Percentage height</title>
</head>
<body>

<div style="height:20em;width:20em;background:#00f;">
	moose
	<div style="height:100%;background:#f00;width:10em;display:inline-block;">
		moo
	</div>
</div>

</body>
</html>