blob: 767dec7b20bc344cc98e5ca94a22b32e88797fa4 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<!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-red
{
background-color: yellow;
border-top: black solid 1px;
width: 50%;
height: 151px;
}
#parent-lime
{
background-color: lime;
border-top: black solid 1px;
width: 100%;
}
#float-left-blue
{
background-color: lime;
float: left;
height: 100px;
width: 100px;
}
#clear-left
{
clear: left;
margin-top: 10px;
margin-bottom: 10px;
}
#other
{
height: 30px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<p>Test passes if there is a yellow rectangle below the lime rectangle.</p>
<div id="parent-red">
<div id="parent-lime">
<div id="float-left-blue"></div>
<div id="clear-left"></div>
<div id="other"></div>
</div>
</div>
</body>
</html>
|