L
Logix
Hello!
I'm trying to make a sort of online page building system. In order to
do this, I represent my page using a HTML table. One of the most basic
templates would be a page divided in six equally proportioned
rectangles:
<table border="1" cellspacing="0" cellpadding="0" width="200"
height="200">
<tr>
<td colspan="2" rowspan="4">ABC</td>
<td colspan="2" rowspan="4">DEF</td>
</tr>
<tr>
<td colspan="2" rowspan="4">GHI</td>
<td colspan="2" rowspan="4">JKL</td>
</tr>
<tr>
<td colspan="2" rowspan="4">MNO</td>
<td colspan="2" rowspan="4">PQR</td>
</tr>
</table>
I was expecting that this would be displayed as follows:
|-------|-------|
| ABC | DEF |
|-------|-------|
| GHI | JKL |
|-------|-------|
| MNO | PQR |
|-------|-------|
As you can see when you copy-paste the snippet, this is not the case.
I cannot leave the colspan/rowspan attributes out because this table
is dynamically build using ASP. If I use a table with 4 columns and 12
rows, I can support a rather wide range of templates such as:
|---------------| |---------------| |-------|-------|
| ABC | | | | ABC | |
|---------------| | ABC | |-------| |
| DEF | | | | | DEF |
|---------------| |-------|-------| | GHI | |
| GHI | | DEF | GHI | | | |
|---------------| |-------|-------| |-------|-------| ...
So my question is: can anyone explain why the table isn't being
displayed as expected?
I've also read some posts in this newsgroup stating that the use of
tables to do things as described above is "symptomatic of poor table
technique". So I would like to ask if someone has other suggestions to
accomplish the features described above.
Thx in advance!
Joris
I'm trying to make a sort of online page building system. In order to
do this, I represent my page using a HTML table. One of the most basic
templates would be a page divided in six equally proportioned
rectangles:
<table border="1" cellspacing="0" cellpadding="0" width="200"
height="200">
<tr>
<td colspan="2" rowspan="4">ABC</td>
<td colspan="2" rowspan="4">DEF</td>
</tr>
<tr>
<td colspan="2" rowspan="4">GHI</td>
<td colspan="2" rowspan="4">JKL</td>
</tr>
<tr>
<td colspan="2" rowspan="4">MNO</td>
<td colspan="2" rowspan="4">PQR</td>
</tr>
</table>
I was expecting that this would be displayed as follows:
|-------|-------|
| ABC | DEF |
|-------|-------|
| GHI | JKL |
|-------|-------|
| MNO | PQR |
|-------|-------|
As you can see when you copy-paste the snippet, this is not the case.
I cannot leave the colspan/rowspan attributes out because this table
is dynamically build using ASP. If I use a table with 4 columns and 12
rows, I can support a rather wide range of templates such as:
|---------------| |---------------| |-------|-------|
| ABC | | | | ABC | |
|---------------| | ABC | |-------| |
| DEF | | | | | DEF |
|---------------| |-------|-------| | GHI | |
| GHI | | DEF | GHI | | | |
|---------------| |-------|-------| |-------|-------| ...
So my question is: can anyone explain why the table isn't being
displayed as expected?
I've also read some posts in this newsgroup stating that the use of
tables to do things as described above is "symptomatic of poor table
technique". So I would like to ask if someone has other suggestions to
accomplish the features described above.
Thx in advance!
Joris