Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On some browsers, they show the website more expanded, removing the white space on the sides of the page. This has the effect of making everything seem more cluttered and bigger.

Is there something in my code that means they do this?

share|improve this question
Can you be more specific, what browsers, are they Desktop versions, Mobile versions? – Nate Apr 14 '11 at 20:20
Is it a "zoom" in that text and images get better too, or is it just CSS that is causing the layout to grow to fill the sides? – Mufasa Jun 24 '11 at 16:47

A lot of browsers persistently remember sites that you've zoomed into before.

You might want to check that it's not a local setting that is 'expanding' your particular website and cropping the white space.

CTRL and zero will reset the zoom in Firefox, Chrome and IE.

share|improve this answer

Are you asking about a specific website, websites in general or browsers?

I've never heard of any browser that zooms in automatically other than the iOS version of Safari.

I've also never heard of client side website code that intentionally causes the browser to zoom in. If it exists, I'm not sure why you'd do that. Typically if you want bigger text, you just specify a larger font size in the CSS. If you want no white-space on the sides, you create a design without white-space that expands/contracts with the window.

Some people like using the zoom feature of their browser... on some browsers it simply makes the text bigger, on other browsers it actually zooms in. Sometimes, the browser's zoom feature breaks the original design.

share|improve this answer

You can try setting a fixed width to the body of the site. This will prevent browsers from adjusting the width to fit the viewport. However it means you may end up with horizontal scrollbars if the user's viewport is smaller than your site's width.

The CSS would look something like:

body {

You could also try a min-width (supported in some browsers). This could be smaller than the (arbitrarily) 920px I've used in the example, but could be large enough that your site doesn't "squish". Ex.

body {
share|improve this answer
A fluid CSS design would work better, with body { width: auto; margin: 0; } – Mufasa Jun 24 '11 at 16:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.