|
Posted by Harlan Messinger on February 19, 2008, 9:25 am
Please log in for more thread options
C A Upsdell wrote:
> Harlan Messinger wrote:
>
>>> Stop specifying a table width of 100%. Don't specify a width at all.
>>> Right now you specify 100%, which makes the browser make a table the
>>> width of the page, which is much wider than the columns you have
>>> defined, so the browser expands the widths of the columns.
>>
>> No, that's all right, because the first column is the only one for
>> which he's trying to specify the width, he's just doing it wrong. Once
>> he gets it right, the browser should allocate 160 pixels to the first
>> column and then allocate the remaining width to the other columns.
>
> Some browsers ignore the specified widths if the table is wider than its
> contents, though this is not as serious a problem as it used to be.
In my experience that's only if a width is specified for EACH column and
the total doesn't add up to the table's width. If at least one column
doesn't have its width specified then the table uses the unfixed
column(s) to allocate the space remaining after allocating space to the
fixed-width columns.
>>> Also, do style="width:160x; text-align:center;" to center the
>>> contents of that table cell.
>>
>> Don't tell him to use 160x!
>
> Typo :(
His. You just copied it. Don't feel so bad. :))
|