aboutsummaryrefslogtreecommitdiff
path: root/test/html/render/text-align-center.ref.html
blob: b13e004e25071ff05db4f62080164689e6041e08 (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
<!DOCTYPE html>
<html>
  <head>
    <title>Test text-align: center</title>
    <style>
      table, tr, td {
        border-spacing: 0;
        margin: 0;
        padding: 0;
      }
      table {
        margin-bottom: 10px;
      }

      .center {
        background-color: aquamarine;
        width: 400px;
      }
      .center td {
        text-align: center;
      }

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

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

      .outer4 {
        background-color:coral;
        width: 400px;
      }
      .inner4 {
        background-color:aquamarine;
        text-align: center;
        width: 100px;
        white-space: nowrap;
      }
    </style>
  </head>
  <body>
    <table class="center">
      <tr><td>simple centered text</td><td></td></tr>
    </table>

    <table class="outer1">
      <tr><td class="inner1">nested div with inner center</td><td></td></tr>
    </table>

    <table class="outer1">
      <tr><td class="inner1">nested div with outer center</td><td></td></tr>
    </table>

    <table class="outer3">
      <tr><td class="inner3">nested span with inner center</td><td></td></tr>
    </table>

    <table class="outer4">
      <tr><td></td><td class="inner4">nested span with outer center</td><td></td></tr>
    </table>
  </body>
</html>