blob: 0e360a602d75a3469866eb3e6487e869504c5fb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Margin collapsing with clearance - margins of a 'collapsed through' box with clearance do not collapse with parent block's bottom margin</title>
<style type="text/css">
#parent-lime
{
background-color: lime;
border-top: black solid 1px;
width: 50%;
height: 100px;
}
#float-left-blue
{
background-color: blue;
float: left;
height: 100px;
width: 100px;
}
</style>
</head>
<body>
<p>Test passes if the lime rectangle is the same height as the blue square.</p>
<div id="parent-lime">
<div id="float-left-blue"></div>
</div>
</body>
</html>
|