summaryrefslogtreecommitdiff
path: root/old/test/cs7.html
blob: 090f7a01e4fcc34d7d95dc8c79bbf1a951f22840 (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
<!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</title>
</head>

<body leftmargin="0" topmargin="0">

  percentages adding more than a 100% (table width=100%)<br>
  <table width='100%' border=1 bgcolor=teal>
    <tr> <td width='100%'>100%
         <td width='50%'>50%
         <td width='50%'>50%
         <td width='100%'>100%
  </table>

  percentages adding more than a 100% (table width=100%)<br>
  <table width='100%' border=1 bgcolor=teal>
    <tr> <td width='80%'>80%
         <td width='5%'>5%
  </table>
  <table width='100%' border=1 bgcolor=lightblue>
    <tr> <td width='80%'>80%
         <td width='15%'>15%
         <td width='5%'>5%
  </table>

  width=100% with cells widths in percentages<br>
  <table border=1>
    <tr> <td width='70%'>70%
         <td width='20%'>20%
         <td width='10%'>10%
    <tr> <td colspan="2" bgcolor=teal>1 2 3 4 5 6 7 8 9 10
         <td>B
  </table>

  small cell width:<br>
  <table border=1>  <tr> <td width='20%'>20%</td>  </table>
  <table border=1>  <tr> <td width='50%'>50%</td>  </table>
  <table border=1>  <tr> <td width='80%'>80%</td>  </table>
  <table border=1>  <tr> <td width='100%'>100%</td>  </table>
  <table border=1>
    <tr> <td width='20%'>20%
         <td width='30%'>30%
  </table>

  small cell width with table width=100%:<br>
  <table width=100% border=1>  <tr> <td width='20%'>20%</td>  </table>
  <table width=100% border=1>  <tr> <td width='50%'>50%</td>  </table>
  <table width=100% border=1>  <tr> <td width='80%'>80%</td>  </table>
  <table width=100% border=1>  <tr> <td width='100%'>100%</td>  </table>
  <table width=100% border=1>
    <tr> <td width='20%'>20%
         <td width='30%'>30%
  </table>

  cell width in second row:<br>
  <table width=100% border=1>
    <tr> <td> AAAA
         <td> BBBB
    <tr> <td> CCCC
         <td width='100%'>20%
    <tr> <td> CCCC
         <td width='20%'>100%
  </table>

</body>
</html>