Results 1 to 2 of 2

Thread: Nested Tables

  1. #1
    Join Date
    Jul 2007
    Posts
    15

    Nested Tables

    I have one large table, that I have the height set to 100% to fill the page. Then inside of this table I have another table with 2 columns, which I need to stretch down 100% of the page also, so I put in height="100%" thinking it would just fill down to 100% of the parent table height, but it wont! What am I doing wrong? Is there a good/better way of doing this?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    Tables just expand to take whatever width and height they need; you can set minimum widths and heights but 100% doesn't always work, as you have discovered. You can achieve what you want with div boxes, see:-

    http://www.wickham43.supanet.com/for...ott070918.html

    There is a skyblue main container and I have put in a pink inner container as you had an inner table but it isn't really needed and it doesn't show because the left and right divs fill it completely. It does however centralise inside the main container as it is 50px less wide.
    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. expert weigh in on tables and floats needed.
    By lafflin in forum General Questions
    Replies: 1
    Last Post: 16 Jul 2007, 02:08 AM
  2. Nested Tables VS... ?
    By lead_diet in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 06 Mar 2006, 06:51 PM
  3. CSS and tables
    By LyleK in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 31 Jan 2006, 01:39 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
  •