|
Posted by Ben C on 01/20/07 09:28
On 2007-01-20, ami.aga@gmail.com <ami.aga@gmail.com> wrote:
> I have the following HTML table.
> 1st row= 2 cols
> 2nd row = 1col
> 3rd row = 3 columns
>
> The first row should spread out across the table with each cell
> occupying half of the coumnspan.
No, what it's doing looks right to me. Cells in a column are always
aligned. In this case since you want to split the width 2 ways at the
top and 3 ways at the bottom you need 6 (the lowest common multiple of 2
and 3) columns altogether.
I suggest make the two cells in the first row colspan="3", give the cell
in the second row colspan="6", and each cell in the third row
colspan="2".
> The code below does not render the 1st row properly.
> help!
>
><html>
> <head>
> </head>
> <body>
> <table border="1">
> <tr>
> <td colspan="2">
> abc
> </td>
> <td >
> bcd
> </td>
> </tr>
> <tr>
> <td colspan="3">
> cde
> </td>
> </tr>
> <tr>
> <td>
> def
> </td>
> <td>
> efg
> </td>
> <td>
> fgh
> </td>
> </tr>
> </table>
> </body>
></html>
>
Navigation:
[Reply to this message]
|