Results 1 to 7 of 7

Thread: HTML: Table height question?

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    HTML: Table height question?

    How do i get a table to occupy the entire height of the page, regardless of whether the content will not reach the bottom of the page?

  2. #2

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    height="100%" doesn't have the affect I intended :s

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173
    Do you mean you're getting that small margin around the table?

    If so, in your <BODY> tag put

    <body topmargin="0" leftmargin="0">


    HTH

  4. #4

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    thanks, i've added that in my css but the left menu finishes halfway down the page :|

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173
    Originally posted by da_silvy
    thanks, i've added that in my css but the left menu finishes halfway down the page :|
    From experience, the css topmargin and leftmargin don't work. Well, for me at least. Have you tried putting it in the body tag and then checking?

    Also, I'd suggest adding a couple <br>s in there

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by mendhak
    From experience, the css topmargin and leftmargin don't work.
    Perhaps that's because it's margin-top: ; and margin-left: ;?

    Or just if you want less lines: margin: 0px, 0px, 4px, 2px;
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by da_silvy
    height="100%" doesn't have the affect I intended :s
    There's is no height attribute for a TABLE. Percentages are also not valid in TABLE attributes (although some browsers, such as IE, do support it, it contradicts the standard).

    However, you can use the CSS height: 100%; for a TABLE.

    I'm not sure if that will make a difference for you, though.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width