Fixed designs define the width on the page, regardless of the browser window size. A normal fixed layout has containers, images and other elements defined in pixel widths. Some popular sites using fixed designs are Yahoo!, CNN and BBC News.
The advantage of fixed layouts is it gives the designer complete control over the design including the use of background images. The faults of fixed design is that the design will look different depending on the user's platform. Fixed layouts can create white space, or wasted space, for users with large screens and resolutions. For users with smaller screens and resolutions the design will spill out of the window creating thus creating a bad user experience with the dreaded scroll bar.
margin:auto; /* center in window */
width: 970px; /* fixed page width */
Fluid design allows the user to decide how the page looks based upon the size of their browser window and display settings. The page fills up the entire available space. Examples of fluid designs are Google, Wikipedia and Delicious. A fluid layout has a container that fills 100% of the entire available space. Within the layout widths of containers, images and other elements are defined in ems or percentages.
The advantage of using a fluid layout is the layout is adaptive and all the space on the page is used. The disadvantage of using a fluid layout is it requires increased testing and not being able to use background images can limit the creativity of the website.
<div class="container" id="layout">
<div class="container" id="column1"></div>
<div class="container" id="MainColumn"></div>
<div class="container" id="column2"></div>
padding-left:300px; /* "left col" width */
padding-right:150px; /* "right col" width */
margin-left:-300px; /* "left col" width */
margin-right:-150px; /* "right col" width */