Results 1 to 2 of 2

Thread: What is wrong with my table?

  1. #1
    Join Date
    Sep 2006
    Posts
    1

    What is wrong with my table?

    see it here

    I am trying to make a menu on the left hand side but the tables on that side get more hight when ever i put something in the center.

    What do i have wrong?

    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Your Home cell is linked to the Logo cell so if the Logo cell has lots of text, the Home cell will increase in height.

    One method would be to put another table inside the left cell with fixed heights for the menu items. This td has valign="top" to keep it up.
    Code:
    <table border="1"><tr>   <!--main table has unlimited height-->
    <td valign="top">  <!--left cell for menu items table-->
    
    <table><tr>
    <td height="30">Home</td>
    </tr><tr>
    <td height="30">faq</td>
    </tr><tr>
    <td height="30">contact</td>
    </tr><tr>
    <td height="30">something else</td>
    </tr></table>
    
    <td>Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height<br/>
    Logo cell unlimited height
    </td>
    </tr></table>
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Table probs
    By orange_juice in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 13 Nov 2005, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •