XHTML & Table heights

Discussion in 'Web Design & Coding' started by Jason2k1, May 22, 2003.

  1. Jason2k1

    Jason2k1 Guest

    I am currently creating a new site, and am trying to make it xhtml 1.0 compliant. Here is what i have done so far:

    http://www.gamezonenetwork.myhost24.com/dev/index.php

    I have got rid of many of the errors within my page. There are just twelve left.

    When i validate it (http://validator.w3.org/check?uri=http://www.gamezonenetwork.myhost24.com/dev/index.php) it gives the error the height attribute in a table does not exist. I am trying to get the table to be 100% the height of the browser(You'll understand if you look at the site), What else am i supposed to use to do this? Also there are other errors any help would be grateful.


    Jason
     
  2. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    that section remove the
    height="100%"
    part in that tag and add

    PHP:
    style="height: 100%"
    in its place

    you can do that for just about all of the height issues that the validator complains about
     
  3. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    the compliant about the background tag, you should move that to be within a STYLE tag as well
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    That'd do it ;)

    Here's an example of background style
    Code:
    style="background-image: url("img/bg/blah.png");  background-position: 0% 0%; background-repeat: no-repeat; background-attachment: fixed;"
     
  5. Jason2k1

    Jason2k1 Guest

    Thanx for the help, moving the height into the style attribute gets rid of the validation errors, but if you look on the actual page, the table is still not 100% of the browser height like it should be. Any Ideas?
     
  6. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Yeah, dont use any height tags or anything.
     
  7. Jason2k1

    Jason2k1 Guest

    So what am i meant to use instead to make the table 100% of the browser height?
     
  8. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    dont make it 100%, i get ticked off when sites do that. Just make the text / whatever else on your site make it longer than 100% at lets say 800 x 600 resolution. There is no reason to make it 100% if there is no content there.
     
  9. mhr

    mhr Guest

    HI,
    why/what for do you need a 100% height table ?
    Meher.
    France.
     
  10. Jason2k1

    Jason2k1 Guest

  11. mhr

    mhr Guest