summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/float-3.html
blob: 0492a5d6ba95186bf23fd6e4460b9b8ca7d2d0bc (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
<style>
    body {
        width: 780px;
        text-align: center
    }
    .box {
        height: 100px;
        width: 300px;
        background: red;
    }
    #top {
        overflow: hidden;
    }
    #bottom {
        border: 1px solid black;
    }
</style>
<body>
    <div id="top">
        <div id="top-left" class="box" style="float: left"></div>
        <div id="top-right" class="box" style="float: right"></div>
    </div>
    <div id="bottom">
        <!-- Due to the overflow property of the top div, this div should be laid beneath the top, rather than inline -->
        <div id="text">foobar</div>
    </div>
</body>