Basically there are 3 types of web pages:
- Fixed-width in pixels or ems.
- Fluid width in %.
- Semi-Fluid width in px and %.
Fluid:
==========
body {width: 98%}
Fixed & centered:
===============
body {
width: 960px;
margin:0 auto; /**this is centered on screen**/
}
Semi-Fluid :
==========
body {
width: 100%;
max-width: 1280px;
min-width: 800px;
}
To further complicate matters, there are responsive and adaptive sites that adjust layouts to fit varous devices (desktops, tablets and smartphones).
Decide who your target audience is and build layout accordingly.
Nancy O.