SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2008
    Location
    London
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best height for tables to suit all browsers please help

    Hello Everyone,

    I decided to use table for the structure for my web pages until I understand more about css style. I know the width for all browser size is 100% well I hope it is but what is the best height to suit all browsers.

    Thanks everyone




    Helen
    Colorize Old Black and White Photos Photo Restorations

  2. #2
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    The TABLE element height is as long as a piece of string; since they don't have heights, it should be determined by it's 'table data cell' contents, etc. Theoretically it would be 100% if you were trying to make it fill the browser window but this is really the realm of a little CSS.

  3. #3
    Mouse catcher silver trophy
    Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,835
    Mentioned
    113 Post(s)
    Tagged
    1 Thread(s)
    The usual plan is not to have a height set, but to allow the design to stretch as far as it needs to vertically in order to contain the contents. That way, it doesn't matter if you have more text on one page, or if someone has a bigger font size set on their browser. If you try to constrain the height, you're in danger of making a page that breaks badly as soon as it leaves your computer.

    If you absolutely have to use layout tables (and I really don't recommend it, they've been outdated for 10 years), you could set a min-height:100% if you want to ensure that the design does fill the screen instead of stopping half-way down if it's only got a small amount of content.

  4. #4
    SitePoint Zealot
    Join Date
    Oct 2008
    Location
    London
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Guys,

    Steve D I like the idea of having height 100% it's a small website. I prefer to use tables for the moment because I am new with website design and feel table give me the control I need. I have no idea how to do .css style it's too advance for me so starting from scratch then I can work my way to the top. I am learning .css at the moment everything seems complicated but I know one day I will be able to codes in that style easier.


    cheers


    helen
    Colorize Old Black and White Photos Photo Restorations

  5. #5
    Non-Member
    Join Date
    Apr 2010
    Posts
    298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Realistically, the height of the table should not matter. Everyone scrolls vertically on their browsers. You should limit the width though as no one wants to scroll side ways (horizontally).

  6. #6
    SitePoint Zealot
    Join Date
    Oct 2008
    Location
    London
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by grannygotgoat05 View Post
    Realistically, the height of the table should not matter. Everyone scrolls vertically on their browsers. You should limit the width though as no one wants to scroll side ways (horizontally).
    Thank you for your advice appreciate it.
    Colorize Old Black and White Photos Photo Restorations


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
  •