summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/input/flex-margin-auto-justify-content.html
blob: ca9d09d255f32dd84a2d0d35872f3fd7b016082e (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 {
        font-family: "SerenitySans";
    }

    .container {
        display: flex;
        justify-content: space-between;
        border: 1px solid salmon;
        width: 600px;
    }

    .box {
        width: 150px;
        height: 50px;
        border: 1px solid black;
    }

    .box:nth-child(1) {
        margin-left: 10px;
    }

    .box:nth-child(2) {
        margin-right: auto;
    }
</style>
<div class="container"><div class="box">left margin</div><div class="box">follow immediately</div><div class="box">over at the right</div></div>