Friday, 20 January 2012

SharePoint 2010 Centered Fixed Width with background Design

Steps:

  1. Open up your master Page and remove scroll=”no” from the body.
    • If you do not do this there will be no scroll bars on long pop up modal windows

  1. In the Master Page search for “s4-workspace” remove this whole DIV tag and its close Div tag at the bottom of the master page.
    • This ID is tied to a JavaScript file that forces a full width on the page.
  2. Now Open up your CSS file and add the following
  3. To open css file --->Go to the styles and then manage style(double click it)
    ---->Click design in the LHS of design it show some properties like (body form,.ms toolbar)
    1. body{
      overflow:auto !important;
      }
      form
      {
      width:980px;
      margin: auto;
      }
  4. Your Site Should look something like this:

If you wanted to add some background color and borders to enhance the centered design replace it with this:
body{
overflow:auto !important;
background-color: #21374c;
}
.s4-widecontentarea{
background-color: #FFF;
}
form
{
width:980px;
margin: auto;
}
The following is how it might look:

That’s it.




No comments:

Post a Comment