SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

My previous question was closed. I want to have a master page with fixed width. I tried to set the margins for the master page as follows,


After this, the sharepoint site displays the margin in the left but not the right margin. I want my sharepoint site to look like these and .

Like Empty spaces on the left and right side and content (including) in the middle.

share|improve this question
up vote 2 down vote accepted

Tom Wilson has a great blog post about how to accomplish this:

He gives a bunch of examples of how to make this work, but the basic example is:

#s4-bodyContainer {
width: 950px !important;
share|improve this answer
it actually does the job perfectly. But site actions ribbon is still fills the browser. Is there anyway we can shrink that too? and How can I set the color to gray in the margins? – Gravity M Feb 22 '13 at 19:50
For the site actions, the article has a jQuery solution. For the gray color, you would need to set the background color of the body to the gray color and then the background color of the bodycontainer class to white. – John Chapman Feb 22 '13 at 19:54
Got it. Worked perfectly. – Gravity M Feb 22 '13 at 20:04

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.