How To Dynamically Expand a TD HTML Tag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spoonybard
    New Member
    • Nov 2007
    • 19

    How To Dynamically Expand a TD HTML Tag

    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
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Post your code or a link.

    Comment

    Working...