summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/justify-content.html
blob: fcb053c171512910ad4b51ed5290cbc21306d9f7 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
  <title>CSS Flexbox justify-content test</title>
  <style>
    #container > div {
      display: flex;
      border: 1px solid cyan;
      width: 350px;
    }

    #container > div > div {
      width: 50px;
      height: 50px;
      background: magenta;
      border: 1px solid black;
    }

    #flex-start {
      justify-content: flex-start;
    }

    #center {
      justify-content: center;
    }

    #flex-end {
      justify-content: flex-end;
    }

    #space-between {
      justify-content: space-between;
    }

    #space-around {
      justify-content: space-around;
    }

  </style>
</head>
<body>
<h1>CSS Flexbox justify-content test</h1>
<div id="container">
  <p>justify-content: flex-start</p>
  <div id="flex-start">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>

  <p>justify-content: flex-end</p>
  <div id="flex-end">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>

  <p>justify-content: center</p>
  <div id="center">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>

  <p>justify-content: space-between</p>
  <div id="space-between">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>

  <p>justify-content: space-around</p>
  <div id="space-around">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
</div>

</body>
</html>