|
Posted by ami.aga@gmail.com on 01/20/07 15:46
It worked it worked!!!!
Thx Ben!!
Following code works just as I wanted it to!!
<html>
<head>
</head>
<body>
<table border="1">
<tr>
<td colspan="3">
abc
</td>
<td colspan="3">
bcd
</td>
</tr>
<tr>
<td colspan="6">
cde
</td>
</tr>
<tr>
<td colspan="2">
def
</td>
<td colspan="2">
efg
</td>
<td colspan="2">
fgh
</td>
</tr>
</table>
</body>
</html>
On Jan 20, 2:28 pm, Ben C <spams...@spam.eggs> wrote:
> On 2007-01-20, ami....@gmail.com <ami....@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]
|