summaryrefslogtreecommitdiff
path: root/works/percentage-height-absolute-position.html
blob: 1525a62dd04289d9ba4af6bf47453823b8da91ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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="position:relative;height:20em;width:20em;background:#00f;">
	<div style="height:100%;background:#f00;width:10em;position:absolute;">
		moo
	</div>
</div>

</body>
</html>