Results 1 to 7 of 7

Thread: Table height for different screen resolutions

  1. #1
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Table height for different screen resolutions

    I have a 1 row 3 col table how do I get it to look right (full screen) on different screen resolutions. If I set it so it looks right on 1024x768 then on1280 x 1024 it only fills like half a page
    tried height 100% doesnt valadate and it doesnt work
    height auto still nothing
    height 500px well ok in 1024 and validates but 1280 not full page either

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    How about using css, instead of tables?

    I think that would solve a lot of your problems. It sounds like you have a 3 column layout.

    So, take a look at this: http://matthewjamestaylor.com/blog/perfect-3-column.htm

    With CSS, you'll be able to have the coding validate and look like you want.

    More examples here: http://css-discuss.incutio.com/?page=ThreeColumnLayouts

  3. #3
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the reason I use table is that i dont understand css lame excuse I know I should take the time but need a quick site.
    in the site I dont want the header or sides to scroll up they need to always be in sight the center of the page scrolls

  4. #4
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Just add the tag:

    Code:
    style="height:100%;width:100%;"
    to your tables, and it should work, unless I'm thinking wrong.

    edit:
    I've never tried, I'm just assuming when you say don't validate you mean that:

    Code:
    <table height="100%" width="100%">
    is not valid? If so then the above should fix it, I think.

  5. #5
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default hi

    Quote Originally Posted by big-dog1965 View Post
    I have a 1 row 3 col table how do I get it to look right (full screen) on different screen resolutions. If I set it so it looks right on 1024x768 then on1280 x 1024 it only fills like half a page
    tried height 100% doesnt valadate and it doesnt work
    height auto still nothing
    height 500px well ok in 1024 and validates but 1280 not full page either



    plz wright this coding for table

    <table align=center width="100%">

    define the with of the table as width="100%"

  6. #6
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    W3C Markup Validator says This page is not Valid HTML 4.01 Transitional!
    Line 45, Column 14: there is no attribute "HEIGHT".
    ive tried
    <table height="100%">
    <table height= "100%">
    <table height=100%>
    <table height=100>

  7. #7
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    So, use css for this part only. I'm sure you can understand this much:

    HTML Code:
    <table style='height:100%'>
    Entire page:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    <head>
    <title>sdf</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    </head>
    <body>
    <table style='height:100%'>
    <tr>
    <td></td>
    </tr>
    </table></body>
    </html>

Bookmarks

Posting Permissions

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