PDA

View Full Version : table column size


paulj
08-06-2007, 04:58 PM
I'm trying to make a table with several columns. I would like to force one of the columns to expand completely so that the text it contains does not run over into the second line like this: Code: --------- | header | header header 1 | 2 | 3 ------------------------------ ...

doctordew
08-06-2007, 07:20 PM
<table>
<tr>
<th id="header1" scope="col">header 1</th>
<th scope="col">header 2</th>
<th scope="col">header 3</th>
</tr>
<tr>
<td>cell 1</td>
<td>cell 2</td>
<td>cell 3</td>
</tr>

</table>

#header1 {white-space: nowrap;}

Thank VipStephan for that post on another forum.