Problem with table's width

Last post 11-30-2007, 12:20 AM by huythan. 3 replies.
Sort Posts: Previous Next
  •  11-29-2007, 3:04 AM 35504

    Problem with table's width

     
    I have two tables
     - The first have width : 1008px
     - The second have two columns, width: 504px per column (504px + 504px = 1008px)
    But they haven't a same displayed width in CE.
     
    Try the code below.
     
    <table id="printHeader" style="margin-left: 0px; width: 1008px; margin-right: 0px; border-collapse: collapse" cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td valign="top" width="100%">
                 AAAAAAAAAAAA <br>
      BBBBBBBBBBBB <br>
                </td>
            </tr>
        </tbody>
    </table>
     
    <table id="printContent" style="margin-left: 0px; margin-right: 0px; border-collapse: collapse" cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td valign="top" width="504px">
                        ABC   <br>
                        NBCD <br>
                        MNBC <br>
                </td>
               <td valign="top" width="504px">
                        NBCD     <br>
                        MNBVCD <br>
                        JNBGVF   <br>
               </td>
            </tr>
        </tbody>
    </table>
  •  11-29-2007, 11:25 PM 35546 in reply to 35504

    Re: Problem with table's width

    Anybody help me please
  •  11-29-2007, 11:46 PM 35548 in reply to 35504

    Re: Problem with table's width

     
    And resize your browser window.
     
    I think it's the HTML standard behavior. Hope it helps.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-30-2007, 12:20 AM 35549 in reply to 35548

    Re: Problem with table's width

    Agree. It's the HTML standard behaviour. By the way, I have found the solution for this issue with style TABLE-LAYOUT: fixed.
    Thanks for your support
View as RSS news feed in XML