summaryrefslogtreecommitdiff
path: root/legacy/works/float-clear-block-formatting-context.html
blob: 97081df84cc445933e6a005d73056f580aac382a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style type="text/css" media="screen, print">
#first { float: left; }
#second { background-color: #ddd; clear: both; overflow: hidden; }
</style>
</head>
<body>

	<div id="first">
		Top
	</div>
	<div id="second">
		Should be below Top
	</div>

</head>
</html>