Computing.Net > Forums > Web Development > [HTML] Setting table td width?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

[HTML] Setting table td width?

Reply to Message Icon

Name: Leo the 28C (by Sulfurik)
Date: January 30, 2007 at 20:35:07 Pacific
OS: Windows XP Pro SP2
CPU/Ram: 2.0GHz/1.0GB
Product: ABS Mayhem Z2 R30
Comment:

Hello everyone! :-D

Look at this picture:

http://img412.imageshack.us/img412/...

That's the picture of my table's <tr> element. There are 2 <td>'s in there. Well, how can I make the second <td> (the one with the pics) be the smallest width possible?

Thanks! ;-)
-- Leo



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: January 31, 2007 at 07:38:11 Pacific
Reply:

style="padding:0px;width:1px;"

Michael J


0

Response Number 2
Name: mie2com
Date: January 31, 2007 at 08:25:21 Pacific
Reply:

Hi =]

I would give width to <table>, and divide them accordingly in both <td>, for example:

<table width="500px">
<tr>
<td width="350px">text column</td>
<td width="150px">image column</td>
</tr>
</table>


0

Response Number 3
Name: Michael J (by mjdamato)
Date: January 31, 2007 at 12:23:29 Pacific
Reply:

I assumed he had a width on the table already, otherwise he wouldn't have that problem. Using a set width that is appropriate for the content IS a better approach ONLY if the content will not change. His example was for a product listing where there could be different sized images.

Michael J


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: [HTML] Setting table td width?

Table Column Width Problem www.computing.net/answers/webdevel/table-column-width-problem/2865.html

Table Column Width Problem www.computing.net/answers/webdevel/table-column-width-problem/3560.html

Help modify some JavaScript/HTML www.computing.net/answers/webdevel/help-modify-some-javascripthtml/2761.html