469,356 Members | 2,646 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

html table widths

tolkienarda
316 100+
hi all

It's been a long time since i've done actual html code. and i seem to have forgotten how to make <td>'s different widths. for example i want to have a image in the top left taking up 25% of the table and text on the other side taking up 75% and then on the next row have the left colom take 75% and the right take up 25% i dont even know if that is possible following is the code that failed for me.

[HTML]
<table width="100%">
<tr>
<td width="25%"><img src="../images/image1.jpg"></td>
<td>text lots of text</td>
</tr>
<tr>
<td width="75%">text lots of text</td>
<td><img src="../images/image2.jpg"></td>
</tr>
</table>
[/HTML]
Feb 12 '07 #1
2 1158
tolkienarda
316 100+
hi all

It's been a long time since i've done actual html code. and i seem to have forgotten how to make <td>'s different widths. for example i want to have a image in the top left taking up 25% of the table and text on the other side taking up 75% and then on the next row have the left colom take 75% and the right take up 25% i dont even know if that is possible following is the code that failed for me.

[HTML]
<table width="100%">
<tr>
<td width="25%"><img src="../images/image1.jpg"></td>
<td>text lots of text</td>
</tr>
<tr>
<td width="75%">text lots of text</td>
<td><img src="../images/image2.jpg"></td>
</tr>
</table>
[/HTML]
ok so i am totaly stupid not my fault i was born that way

[HTML]
<td colspan...>
[/HTML]
Feb 12 '07 #2
AricC
1,892 Expert 1GB
ok so i am totaly stupid not my fault i was born that way

[HTML]
<td colspan...>
[/HTML]
It happens don't forget about rowspan either!
Feb 13 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Raaijmakers, Vincent (IndSys, GE Interlogix) | last post: by
71 posts views Thread by tomy_baseo | last post: by
2 posts views Thread by Andy Flash | last post: by
9 posts views Thread by Veerle | last post: by
1 post views Thread by Jeronimo Bertran | last post: by
18 posts views Thread by chimalus | last post: by
13 posts views Thread by kw | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.