Connecting Tech Pros Worldwide Forums | Help | Site Map

How To Dynamically Expand a TD HTML Tag

Newbie
 
Join Date: Nov 2007
Posts: 15
#1: Aug 20 '08
Hi Everyone,

I have a table with multiple rows containing 2 columns each. The first column contains text that can get several lines long and cause the TD tag to expand in height to fit the text accordingly. In the second column I have an image.

The default height of the TD's is 23px. When the text in the first column is large enough to increase the TD height, the second column with the image stays at 23px.

This would normally not be an issue, but I use alternating row colors (gray and white). For the white colored rows things look like there is no problem. However, on the gray rows you can clearly see the expansion.

Any help in this matter would be greatly appreciated.

Thanks.

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Aug 21 '08

re: How To Dynamically Expand a TD HTML Tag


Post your code or a link.
Reply