hPage.com Forum
Remember Me?
  #1 (permalink)  
Old 09-25-2011, 09:45 AM
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Table problem

I want a table in a proportianate size.When I insert text in it,one column is getting longer in width than the other two.Please help me.My website address is www.desecobuddies.hpage.com
Reply With Quote
  #2 (permalink)  
Old 09-25-2011, 11:16 AM
Senior Member
 
Join Date: Jan 2011
Location: Berlin, Germany
Posts: 124
Thanks: 0
Thanked 29 Times in 27 Posts
Default

Example 1:
HTML Code:
<table border="1" width="300" id="table1">
    <tr>
        <td width="150">content</td>
        <td width="150">&nbsp;</td>
    </tr>
    <tr>
        <td width="150">very long content in two lines</td>
        <td width="150">&nbsp;</td>
    </tr>
</table>
The table has a widht of 300 Pixel and each cell 150 Pixel
Example 2:
HTML Code:
<table border="1" width="300" id="table1">
    <tr>
        <td width="50%">content</td>
        <td width="50%">&nbsp;</td>
    </tr>
    <tr>
        <td width="50%">very long content in two lines</td>
        <td width="50%">&nbsp;</td>
    </tr>
</table>
The table has a width of 300 px and each cell a width of 50% of the width of the table.
Reply With Quote
  #3 (permalink)  
Old 09-29-2011, 01:43 PM
Junior Member
 
Join Date: Aug 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks

Thank YOu!!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:37 PM.
Archive - Top