CSS - fixed width?

Soldato
Joined
26 Nov 2003
Posts
6,674
Location
East Sussex
Evenin chaps. Quick question - when making a web site with css, does the whole "width=xx.px" thing mean that whatever you make, your whole site will have a fixed width? So someone with a 1600 widescreen would only get half a page out of a site made to be usable with a 800/600 resolution?

If that is not the case, how do you define relative widths? Is css a preferred method of making websites for multiple resolutions? Is there a better way?
 
If your site is defined in pixels, it is stuck at that width no matter what resolution you on on.

You have to you percentages instead of pixel values to make it appear the same on other resolutions.

If your designing for a 1024 wide resolution and your column is say 200px wide. Then the width should be around 20%.

This will make the column 320pixels wide on a 1600 wide resolution. If you use pixel values, the width will still be 200.

JD
 
Last edited:
Back
Top Bottom