Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why width 960px?

Tags:

html

css

I have a question regarding fixed layout. It has two parts, closely related, so I'm putting in one question.

Part (a) Why 960px is suggested for the website layout? I understand that it is optimized for the most common screen resolution (1024px). But why exactly 960px? Won't the 1000px be as good?

Part (b) What exactly is Grid system? I did check 960.gs but didnt get the idea of columns. Is it better to use grid system (using the template from 960.gs, which looks so messy) or should i stick with traditional way, like:

<div id="wrap">      <div id = "left-column">..</div>      <div id = "center-column">..</div>       <div id = "right-column">..</div>      </div> 
like image 599
jay Avatar asked Sep 14 '11 11:09

jay


People also ask

What is a good site width?

1280px and 1920px are the two standard widths for web design. A 1280px website will look great on laptops and mobile devices but not so great on large monitors. To ensure your site looks just as good on big screens as it does on small screens, set your max site width to 1920px or more.

How many pixels wide is a normal website?

The average size of these web pages is around 960 pixels, which is what you would expect as the most screen resolutions are 1024x768 or larger. W3Schools data from January 2011 found that around 1.1% of users had a screen smaller than this, a number which will continue to decrease.


2 Answers

1024px is the max screen width it's aiming at. We need to allow some window chrome, so it needs to be less. We'd ideally like it to have lots of factors, allowing us to split it into equal size columns with integer widths.

960 has lots of factors:

echo factors(960); 1  2  3  4  5  6  8  10  12  15  16  20  24  30  32  40  48  60  64  80  96  120  160  192  240  320  480  960  

1000 doesn't have as many

echo factors(1000); 1  2  4  5  8  10  20  25  40  50  100  125  200  250  500  1000   

Specifically, you can easily split 960 into 2,3,4,5,6 and 8 columns.

like image 96
Rich Bradshaw Avatar answered Sep 27 '22 19:09

Rich Bradshaw


Why 960px is suggested for the website layout?

960 pixels is a common width for web layouts because 1024 x 768 was the most common resolution for many years and designers were forced to design for the lowest common denominator. When designing to a fixed width, it's wise to design so most people don't see a horizontal scrollbar. If your design is 1024 pixels wide, a page that is higher than the viewport (say 768 pixels for simplicity), will suddenly introduce a vertical scrollbar, eating away the available horizontal space which suddenly is less than 1024 pixels (1024 minus the width of the vertical scrollbar).

So you need a width less than 1024 minus the width of the vertical scrollbar. The width of a scrollbar isn't much more than 20 pixels, but to take into account non-maximized windows and end up with a number that's easily divisible into as many factors as possible, since that makes designing fixed-size boxes or columns easier. As 960 has more factors than 1000, 960 was chosen.

It's a partially false safety net to base the design on a fixed width of 960 pixels, though, since many people won't maximize their windows or even re-size them properly, so even with resolutions higher than 1024, their browser window might not fit 960 pixels. That's why responsive web design is beginning to take off, where designs are more fluid and responsive to the user's device settings (like screen resolution).

What exactly is Grid system?

A grid system is just a set of predefined CSS class names that you can use in your HTML documents to align the different boxes in your design into a "grid" that matches one or more common layouts for web design. A grid system is good if you're unfamiliar with CSS and find it difficult to align the boxes (in both width and height) your design is composed of.

If you find CSS simple enough to write yourself, I recommend you write it yourself. I also recommend not to use strictly fixed width columns, but instead more responsive web design (like mentioned above) to accommodate different screen sizes better than a fixed-width design is capable of.

like image 43
Asbjørn Ulsberg Avatar answered Sep 27 '22 19:09

Asbjørn Ulsberg