Of the biggest challenges for Web builders is the variability of the screen
sizes with which they must work. Deciding on how wide a Web page should
be is based on several factors. Most computer monitors are set for a width
of 1024 pixels or wider when they are delivered from the factory. CRT monitors are relative rare these days, and LCD monitors are more common. Each type has different default settings as they are shipped from the manufacturer.
However, many older monitors, especially those with that
are smaller than 19", are set at a width of 800 pixels. Wide screen LCD monitors may have a very wide width. Some very old CRT monitors may be set to only 640 pixels wide, but these are very rare now days.
Large monitors
often have screen widths of 1440 pixels or larger. One of the biggest decisions
for anybody creating a Web page involved choosing which is the most appropriate
size for the design.
|
|
On the right is an example of a Web page that is designed for a very old monitor
set at 640 pixels by 480 pixels. The screen shot is taken from a monitor
set at 800 pixels by 600 pixels.
In those old days the designer expected that most visitors would use monitors set at 640
x 480 pixels. You notice that there is a great deal of white space on the right side of the screen. If this page was to be viewed on a monitor set at 1024 pixels or wider, the resulting tremendous about of blank area on the right would make this design a very poor choice. |

Notice the large white area on the right. This page was built for a screen with of 640 pixels, but is viewed on a screen set at 800 pixels wide.
Image what it would look like on a screen set at 1024 pixels wide! |
|
Tables are used to control the width of material presented on a Web page.
Table width can be specified in either percent or pixels. Specifying table
width in percent will cause the table size to change depending on what the
viewer's screen size is. This means that on some screens the page layout
will be very narrow, on others it will be extremely wide. This telescoping effect can be very helpful when a design must fill a screen so that there are no blank areas.
NOTE: Some people say that tables are "old fashioned," and they are right. With Cascading Style Sheets we can use alternative methods for locating elements on a Web page. But, tables remain basic reliable tools for page composition. Web page beginners will appreciate how easy they are to work with, especially when compared to CSS. Be sure to read our "Tables vs. Cascading Style Sheets" section below. |
 |
On the right are two screen shots of the same Web page. But the monitors
each have a different setting. The top image is from a monitor set at
640 pixels by 480 pixels. The bottom image is from a monitor set at 800
pixels by 600 pixels.
Note that the headline "Welcome to the Achievements Web site!"
is on two lines in the top screen shot and on one line in the bottom.
The set of images that make up the header consist of the logo and the
"Welcome" GIF on the top right. But notice that the header is
not the same dimension in the two images. It contracts for the small screen
width and expands for the larger.
This is accomplished by using tables have sizes specified in percentages
rather than actual pixels. It takes some clever planning to make the effect
work correctly. But it can be used to a designer's advantage to assure
that a page looks exactly right. |

This page is viewed on a monitor set at 640 pixels

This is the same page viewed on a monitor set at 800 pixels |
Cascading Style Sheets are the officially preferred way to controlling presentation on a Web site. The development of CSS is based on the desire to have HTML/XHTML fulfill its original function, to define objects. CSS are intended to be used to control presentation, how things look.
Cascading Style Sheets can be used to control placement by specifying the attributes of certain objects. The attributes include size and position, and the objects can be certain tags, such as the division <div> tag.
CSS are much harder for the novice Web page builder to use than tables because at first they seen to be much more limiting. However, through clever application of Cascading Style Sheet features it is possible to replace tables with CSS defined objects in most instances.
A big "plus" in favor of Cascading Style Sheets is that they usually save editing time once a site is built. Because a Style Sheet can be linked to any number of pages, it is possible to update styled objected throughout a site simply by editing a class.
The illustration on the right shows how a single CSS can be linked to multiple pages on a Web site.
For more information on Cascading Style Sheets, visit our CSS tutorial. |
For More Information on Cascading Style Sheets be sure to check out the Interactive Media Center tutorial
Introduction to Cascading Style Sheets
Additional information about Cascading Style Sheets can be found at:
Word Wide Web Consortium
CSS Zen Garden

|
Many Web users with newer browsers have extra windows or panels open.
This multitasking makes designing a page even more complicated.
The image on the right is an example. The left panel of the browser displays
information or provides access to functions that the user may find helpful.
This page is cleverly designed using advanced techniques that allow it
to automatically resize depending on the available screen space in the
browser.
This can be done with telescoping tables, or with Cascading Style Sheets.
| Touch
this button to see the dead space on the screen shot to the right |
 |
|

|