RetroZilla/layout/html/tests/table/bugs/bug1128.html

47 lines
985 B
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<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>