aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/test_clear.html
blob: a9b4ae052b948879717bbcc939b60e2cf1d61fc1 (plain) (blame)
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
<html>
<head>
<style>
#container {
    width: 300px;
}
#left {
    float: left;
    width: 100px;
    height: 100px;
    background: red;
}
#right {
    float: right;
    width: 100px;
    height: 200px;
    background: blue;
}
#clear1 {
    clear: none;
    width: 200px;
    height: 50px;
    background: green;
}
#clear2 {
    clear: left;
    width: 200px;
    height: 50px;
    background: green;
}
#clear3 {
    clear: right;
    width: 200px;
    height: 50px;
    background: green;
}
</style>
</head>
<body>
<div id="container">
<div id="left"></div>
<div id="right"></div>
<div id="clear1"></div>
<div id="clear2"></div>
<div id="clear3"></div>
</div>
</body>
</html>