Posted by TheBagbournes on 01/27/07 12:12
Jukka K. Korpela wrote:
> Scripsit TheBagbournes:
>
>> I'm trying to lay a table out like this:
>>
>> +------------+---------+
>>> | |
>> + +---------+
>>> | |
>> +------------+---------+
>
> Presumably this is to be viewed in a monospace font. But are you sure
> you want such a _table_, as opposite to such _layout_? Hint: What would
> be a meaningful summary="..." attribute in the <table> tag, and what
> would the <caption> element contain?
>
>> And I can't work out the rowspan/colspan incantation!
>
> It's too early to decide on that. The first question is whether you
> should use a table at all. But if you decide to use a table,
>
> <table>
> <tr><td rowspan="2">The stuff on the left</td><td>The upper stuff on the
> right</td></tr>
> <tr><td>The lower stuff on the right</td></tr>
> </table>
I figured it out :
<table cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2">
Single Row
</td>
<td>
Top half
<td>
</tr>
<tr>
<td colspan="2">
Bottom half
</td>
<tr>
</table>
You have to give the td on the second row colspan="2", otherwise the table is not balanced (every row has to have the same number of columns spanned).
[Back to original message]
|