Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Table attribute

  1. #1
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table attribute

    Hello,
    I cant control a table height in xhtml10 strict.
    Maybe im going about this the wrong way?

    height:100%

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm, I can't find it offhand but do a search of the forums, I believe jkd posted a solution to this.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    html, body {
    height: 100%;
    }

    .mytable {
    height: 100%;
    }

    Then assign the main table a class of mytable.

  • #4
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oooooohhhh thanks alot!
    thats intresting, why do you have to do that?

    im really trying to make this page 100% valid in strict xhtml
    how can i, through my css replace inside my <table> tag:
    align="middle" valign="top"
    Last edited by cg9com; 11-17-2002 at 05:03 PM.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    > > oooooohhhh thanks alot!
    > > thats intresting, why do you have to do that?

    Because your browser needs to know the height of the containing block. '100%' means nothing if the size of the containing block is not specified.


  •  

    Posting Permissions

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