aboutsummaryrefslogtreecommitdiff
path: root/test/html/render/text-align-center.html
blob: 0254a730c7a079f4a01920c9006604441aeba5c9 (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
<!DOCTYPE html>
<html>
  <head>
    <title>Test text-align: center</title>
    <style>
      .center {
        background-color:aquamarine;
        text-align: center;
        width: 400px;
      }

      .outer1 {
        background-color:coral;
        width: 400px;
      }
      .inner1 {
        background-color:aquamarine;
        text-align: center;
        width: 100px;
      }

      .outer2 {
        background-color:coral;
        text-align: center;
        width: 400px;
      }
      .inner2 {
        background-color:aquamarine;
        width: 100px;
      }

      .outer3 {
        background-color:coral;
        width: 400px;
      }
      .inner3 {
        background-color:aquamarine;
        text-align: center;
        width: 100px;
      }

      .outer4 {
        background-color:coral;
        text-align: center;
        width: 400px;
      }
      .inner4 {
        background-color:aquamarine;
        width: 100px;
      }

      body > div {
        margin-bottom: 10px;
      }
    </style>
  </head>
  <body>
    <div class="center">simple centered text</div>

    <div class="outer1">
      <div class="inner1">nested div with internal center</div>
    </div>

    <div class="outer2">
      <div class="inner2">nested div with external center</div>
    </div>

    <div class="outer3">
      <span class="inner3">nested span with internal center</span>
    </div>

    <div class="outer4">
      <span class="inner4">nested span with external center</span>
    </div>
</html>