problem with table cells

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mil111
    New Member
    • Jan 2008
    • 9

    problem with table cells

    Hi,
    Can anybody help me. I'm making web page (in asp.net) using html, problem is table and image. I set
    <tr style="width:10 0; height:30">
    <td style="width:10 0; height:30">
    <asp:image id="xxx" runat="server" width="100" height="30" />
    </td>
    </tr>
    But if I run it the cell remains bigger than the image is, and I want it to be the same. If I leave it like this, there is to much empty space until next row. Also, in <table> tag cellspacing and celpadding is set to 0. Do you have any idea what the problem is? This is not the only combination I tried, but I can't figure it out.
    Thanks.
  • kunal pawar
    Contributor
    • Oct 2007
    • 297

    #2
    set image width in percentage format. so image will take full width of table cell

    Comment

    • malav123
      New Member
      • Feb 2008
      • 217

      #3
      HI,
      Do not give the style in tr and td... give it just in the image tag only...
      td will expands according to your image dimension... so just try this... i think it will works...

      Comment

      • mil111
        New Member
        • Jan 2008
        • 9

        #4
        Hi,

        thank for you replay. I tried both possibilities before I posted this, but it dosn't work. I'm running out of options, and don't now what the problem is. Any other ideas?

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Did you set the Cellpadding and Cellspacing to -1?

          Comment

          • kunal pawar
            Contributor
            • Oct 2007
            • 297

            #6
            can u post all table structure, may be problem is due to cell missing

            Comment

            Working...