quick question

battletoad

Expert Member
Joined
Mar 10, 2009
Messages
1,461
Reaction score
52
I have to finish off a website. The website builder I'm using is a bit old, and playing around in the source doesn't fix the issue.

I want a template of something like this...
_____________________________________________
| |_______________________________|
|____________|_______________________________|
| |_______________________________|
|____________|_______________________________|
. .
. .
. .

...using tables.

what i did basically was this:
<table width=100%> //big outer table which contains inner tables
<tr>
<td with attribs>
<tr> //this part
<td width="33%"></td> //here is
<td>(*)</td> //repeated
</tr>
.
.
.
</tr>
</table>

The above gives you a 2-column (33-67 left-right split) table within a bigger table.

Now at (*), I added:
<tr><td></td>
</tr>
<tr><td></td>
</tr>

to no avail. Any way i can split a row in the right into two rows without causing a change in the left column?(basically, one cell on the left, two cells stacked on top each other on the right)

edit: don't know how to make whitespace so the ascii graphic is a bit messed up.
 
Last edited:
Any way i can split a row in the right into two rows without causing a change in the left column?(basically, one cell on the left, two cells stacked on top each other on the right)

with rowspan

Code:
<table border="1" >

		<tr >
			<td rowspan="3">3 rows spanned together</td>
		</tr>
		
		<tr>
			<td width="33%">row 2, cell 2</td>
			
		</tr>
		
		<tr>
			<td width="33%">row 3, cell 2</td>
			
		</tr>

</table>

is that what you mean?
 
Try the following - adjust it to suit your requirements:
Code:
<table border="1" width="600">
<tr >
<td width="33%">row-1 cell-1</td>			
<td width="67%">row-1 cell-2</td>			
</tr>
<tr>
<td rowspan="2">row-2 cell-1</td>			
<td>row-2 cell-2a</td>
</tr>
<tr>
<td>row-2 cell-2b</td>
</tr>
<tr>
<td>row-3 cell-1</td>
<td>row-3 cell-2</td>	
</tr>
</table>
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X