File: bug1128.html

package info (click to toggle)
iceweasel 2.0.0.19-0etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 298,784 kB
  • ctags: 317,912
  • sloc: cpp: 1,796,902; ansic: 987,677; xml: 109,036; makefile: 47,777; asm: 35,201; perl: 26,983; sh: 20,879; cs: 6,232; java: 5,513; python: 3,249; pascal: 459; lex: 306; php: 244; csh: 132; objc: 97; yacc: 79; ada: 49; awk: 14; sql: 4; sed: 4
file content (46 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (10)
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
<html>
<head>
<title>Table Column Proportional Width Contraints</title>
</head>
<body>
<h2>HTML 4.0 Table Column Proportional Width Constraints</h2>
<p>
The table below is 350 pixels wide. The columns are assigned proportional widths using COLs
as follows:
</p>
<tt>
&lt;col width=50&gt;<br>
&lt;col width=2*&gt;<br>
&lt;col width=1*&gt;<Br>
&lt;col width=3*&gt;
</tt>
<p>
This means the first column should be 50 pixels wide. The remaining width should be divided
among the three remaining columns according to the proportional width statements into six
(2+1+3)
parts. Since the Table is 350 pixels wide, and the remaining width is 300 pixels (350-50),
the remaining columns should be 100 (2*50), 50 (1*50) and 150 (3*50) pixels wide, 
respectively.
</p>
<table border=1 width=350>
<colgroup>
<col width=50>
<col width=2*>
<col width=1*>
<col width=3*>
</colgroup>
<tr>
<th>One
<th>Two
<th>Three
<th>Four
</tr>
<tr>
<td>Red
<td>Green
<td>Blue
<td>Green
</tr>
</table>
</body>
</html>