summaryrefslogtreecommitdiff
path: root/test/html/render/table-max-width.html
blob: 3c260fddcf112a10be6f5d8dddcb6f2ec2e44bee (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>Test table in container with max-width and min-width</title>
    <style type="text/css">
      .main {
        background: lightgreen;
        max-width: 500px;
        min-width: 200px;
        padding: 10px;
      }
      .ruler {
        background: red;
        width: 500px;
        height: 20px;
        padding: 0px;
        margin: 10px;
      }
      table, th, td {
        padding: 0.25em;
        background: lightblue;
        border: solid 1px black;
      }
  </style>
</head>
<body>
  <div class="ruler"></div>
  <div class="main">
    <table width="100%">
      <tr>
        <th>AAAAAA</th>
        <th>BBBBBB</th>
        <th>CCCCCC</th>
      </tr>
      <tr>
        <td>aaaaaa</td>
        <td>bbbbbb</td>
        <td>cccccc</td>
      </tr>
    </table>
  </div>
</body>
</html>