aboutsummaryrefslogtreecommitdiffstats
path: root/test/render/test37.htm
blob: a6f7221118c25756f6fcc723ad469fcd36fd5890 (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
<style>
    .element1
    {
        width: 200px;
        height: 100px;
        background-color: lightsalmon;
        margin: 5px;
        float: left;
    }

    .element2
    {
        width: 200px;
        height: 50px;
        background-color: lightpink;
        margin: 5px;
        float: left;
    }
    .row
    {
        background-color: lightgray;
    }

    ::after, ::before
    {
        display: table;
    }

    .row::before, .row::after {
        content: "";
        border: 1px solid black;
    }

    .row::after {
        clear: both;
    }
</style>

<div class="row">
    <div class="element1">a</div>
    <div class="element2">s</div>
</div>
<div class="row">
    <div class="element1">d</div>
    <div class="element2">f</div>
</div>