|
Posted by John Hosking on 01/13/08 15:54
Bernd Meier wrote:
> Why has the value of height no consequences in the below example?
> If I change width I get changes but not if I change height.
Because you're making things up.
Prefatory remark 1: Providing a URL is better than posting code, because
1) the URL is usually shorter,
2) the URL lets us see, for example, what doctype you're using, and
3) we can immediately try out your code in our browsers, without
copy-and-paste or guessing from just looking at your code.
Prefatory remark 2: Below I mention the recommmendation for HTML 4.01
because I don't know what you think you're using. No URL, you see.
> <colgroup>
> <col width="50" height="100">
Take a look at the W3C's description of the <col> element at
<http://www.w3.org/TR/html401/struct/tables.html#h-11.2.4.2>.
There is no height attribute for <col>. You've just made it up.
You'd have to specify the width directly to the TDs (and hope for the
best), although in practice you can usually specify width for <TD>
elements in one row, and all the columns in the rest of the table make
similar use of those widths (depending on the actual content, as always).
--
John
Pondering the value of the UIP: http://improve-usenet.org/
[Back to original message]
|