WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-05-2003, 12:15 PM
Neo's Avatar
Neo Neo is offline
WebProWorld New Member
 

Join Date: Oct 2003
Location: SF Bay Area
Posts: 19
Neo RepRank 0
Default Can you auto size for multiple screen resolutions?

Hello Web Pros!

I've been on sites that perfectly fit my browser's screen in both 800x600 and 1024x768 resolutions and have wondered to myself: "Self, How did they do that?" Someone recently told me that if you build everything inside one master table sized at 100%, the browser will automatically resize to fit the screen no matter what your screen resolution, eliminating the need to scroll horizontally. I tried it and it didn't work for me. How is it done? One site that does this is http://www.marketingpower.com
Thanks in advance for your input.
__________________
~ Neo
VISn Marketing Group
www.visngroup.com
Reply With Quote
  #2 (permalink)  
Old 12-05-2003, 01:05 PM
Narasinha's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Urbana, Illinois, US
Posts: 306
Narasinha RepRank 1
Default Re: Can you auto size for multiple screen resolutions?

Quote:
Originally Posted by Neo
HSomeone recently told me that if you build everything inside one master table sized at 100%, the browser will automatically resize to fit the screen no matter what your screen resolution, eliminating the need to scroll horizontally. I tried it and it didn't work for me. How is it done? One site that does this is http://www.marketingpower.com
Hi Neo,
Yes, setting up a table (as the site you mentioned has done) or a <DIV> (using CSS) to use a width of 100% will resize that container to fit to the browser window. Keep in mind that in practice you can put something (a graphic, for instance) inside that container that is wider than the browser. This forces the table or div to expand to fit what is inside of it. This really show up when, for instance, you have a table with three cells across, and the content of those cells end up wider than 1024 pixels. Scrolling left-to-right is the only way the browser can fit it onto most screens. Sometimes table cells (or <DIV>s) are given fixed widths in pixels. This can allow for more precise positioning of items, but often results in a page looking too thin or too wide on some screens. In using CSS you can specify the dimensions of an item using pixels, percentages, ems, etc. Percentages, and variable units such as ems, will allow page elements to resize with the page, or the selected text size.

That Marketing Power web site sure looks a lot different in Opera than in Internet Explorer!

Narasinha
Reply With Quote
  #3 (permalink)  
Old 12-05-2003, 02:33 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Hi Neo,

As Narasinha has confirmed, using flexible tables or div layers is the simplest way to have your pages looking good in 800x600, 1024x768 or indeed whatever size a visitor may choose. I know there are various JavaScripts out there that will attempt to adjust the page layout 'on the fly', but these are often quite unpredictable in their behaviour, and often have compatibility issues.

There are a number of articles which explain the concept of 'liquid design' much further, and I've included a couple of useful links below:

Liquid Tables
http://evolt.org/article/ds/20/2321/

Liquid Design for the Web
http://algonquinstudios.com/article_177.html

I've also created several sites myself using a similar approach to layout.. two prime examples being www.keybridge.com and www.softfurnishing.co.uk

Hope that's of some help

Paul
Reply With Quote
  #4 (permalink)  
Old 12-06-2003, 12:31 AM
Neo's Avatar
Neo Neo is offline
WebProWorld New Member
 

Join Date: Oct 2003
Location: SF Bay Area
Posts: 19
Neo RepRank 0
Default

Thanks guys! I really appreciate your input. paulhiles, I haven't yet got a chance to check out the resources you passed on but I will as soon as I get a chance. Thanks again.
__________________
~ Neo
VISn Marketing Group
www.visngroup.com
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0