Expand content vertically

J

Jander

Hi i've a table like this

<table border="1" >

<tr>
<td width="10">12345678901234567890</td>
<td width="10">1234567890</td>
</tr>

</table>

I want that first td expands vertically and both columns with the same
width.

I don't know how to do that.

Any Ideas ?.
Thanks.
 
M

mark | r

err take width=10 out, your strings are much greater than 10 instead set the
width of the table

e.g.

<table border="1" width="50">
<tr>
<td valign="top" width="50%">1234567890</td>
<td valign="top" width="50%">123</td>
</tr>
</table>

mark
 
P

puk

Jander said:
Sorry,I tried your solution but first td not expands vertically .

Mark,
Try this -

<table border="1" width="100%">
<tr>
<td valign="top" width="50%">1234567890</td>
<td valign="top" width="50%">123</td>
</tr>
</table>

Neil
 
R

Richard

Jander said:
Hi i've a table like this

<table border="1" >

<tr>
<td width="10">12345678901234567890</td>
<td width="10">1234567890</td>
</tr>

</table>

I want that first td expands vertically and both columns with the same
width.

I don't know how to do that.

Any Ideas ?.
Thanks.

How about this way?
<td width="95">12345678901234567890</td>
<td width="5">1234567890</td>
making the 2nd table only as wide as 1 character.
The problem though is, keeping the cell width changing as the text size
does.
 
M

mark | r

ah its becaise 1234567890 dont have spaced in between them try
the solid string forces the cell outwards!

mark

<table border="1" width="10">
<tr>
<td valign="top" width="50%">1 2 3 4 5 6 7 8 9 0 </td>
<td valign="top" width="50%">1 2 3 </td>
</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top