We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Setting the size of a web page...

Hi
What I would like to do is set a page so it fills the browser on any monitor size.

I thought that maybe I could insert an single cell table and set the table width to 100% and make all layers relative rather than fixed?? :confused:

This doesn't seem to work though and I can't seem to find an answer, apart from don't do it lol.

Can anybody suggest anything?

Thanks :o
«13

Comments

  • Off top of my head, use a <div></div> as a container for the whole page, and set it's width to 100% either inline or in the CSS if your using an external stylesheet
  • For the love of God don't use tables! :eek:
  • M4RKM
    M4RKM Posts: 5,132 Forumite
    1,000 Posts Combo Breaker
    shame i can only thank people once, or i'd sit here clicking thanks for FreheitOverture's message just there til my beer ran out...

    and i've only just opened it..

    tables are evil for design, and only useful for tabular data (and in lazy cases forms!)
  • John_Gray
    John_Gray Posts: 5,845 Forumite
    Part of the Furniture 1,000 Posts Name Dropper Photogenic
    I can see the objections to frames, but border-free tables seem to me to be a good way of overcoming some of the more glaring deficiencies of HTML with regard to positioning text.

    What's your solutions(s)?!
  • chunter
    chunter Posts: 2,021 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    For the love of God don't use tables! :eek:

    Is there such a thing as web design Snobbery?
  • PROLIANT
    PROLIANT Posts: 6,396 Forumite
    1,000 Posts Combo Breaker
    chunter wrote: »
    Is there such a thing as web design Snobbery?
    Not snobbery, it is illegal as far as business goes as blind or visually impaired users can’t read web pages with their software, as for personal use it is just bad practice and poor coding.
    ;)
    Since when has the world of computer software design been about what people want? This is a simple question of evolution. The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy.
  • john_s_2
    john_s_2 Posts: 698 Forumite
    At the time of writing the source code for this thread has nearly 50 tables.
  • PROLIANT
    PROLIANT Posts: 6,396 Forumite
    1,000 Posts Combo Breaker
    Since when has the world of computer software design been about what people want? This is a simple question of evolution. The day is quickly coming when every knee will bow down to a silicon fist, and you will all beg your binary gods for mercy.
  • martindow
    martindow Posts: 10,626 Forumite
    Part of the Furniture 10,000 Posts Name Dropper
    PROLIANT wrote: »
    it is illegal as far as business goes as blind or visually impaired users can’t read web pages with their software, as for personal use it is just bad practice and poor coding.
    ;)

    I think visual impairment software copes with tables OK. I've had good comments about my site (which uses tables). Multitudes of nested tables probably do cause problems.

    The difficulty is that some browsers mainly IE do not render CSS positioning properly and hacks and strange coding can be necessary to avoid the design collapsing. A fairly simple table in my opinion is an easy way to get layout and does not give too much bloated code.
  • PasturesNew
    PasturesNew Posts: 70,698 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    Yes tables are to be avoided if at all possible. However, for many people (including those calling themselves web designer/developers) the leap from there to a div based, css driven site is often too much with browser compatibility issues -v- time/cost.

    I'd say: if you have the time to "do it properly" then take the time to learn about divs/containers and do it that way, along with all the extra cross-browser compatibility testing.

    If you just want to achieve a web page, to display information, and you only know how to use tables, then go for it.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.1K Banking & Borrowing
  • 253.6K Reduce Debt & Boost Income
  • 454.3K Spending & Discounts
  • 245.2K Work, Benefits & Business
  • 600.9K Mortgages, Homes & Bills
  • 177.5K Life & Family
  • 259K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.