aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/test_float_placement.html
blob: f983c6260e87582269108513cf6b24e236829068 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<html>
    <head>
        <style type = "text/css">
            #float {
                float: left;
                width: 300px;
                height: 500px;
                background: blue;
            }
            #float1 {
                float: left;
                width: 500px;
                height: 75px;
                background: red;
            }
            #float3 {
                float: left;
                width: 200px;
                height: 100px;
                background: red;
            }
            #float2 {
                float: right;
                width: 100px;
                height: 50px;
                background: green;
            }
            #float4 {
                float: right;
                width: 100px;
                height: 250px;
                background: green;
            }
            #float5 {
                float: left;
                width: 300px;
                height: 100px;
                background: yellow;
            }
            #outer {
                padding: 100px;
                height: 250px;
                background: gray;
            }
            #firstouter {
                height: 100px;
            }
        </style>
    </head>
    <body>
        <div id = "firstouter">
            <div id = "float"></div>
        </div>
        <div id = "outer">
            <div id = "float1"></div>
            <div id = "float2"></div>
            <div id = "float3"></div>
            <div id = "float4"></div>
        </div>
        <div id = "float5"></div>
    </body>
</html>