Friday, February 14, 2014

SharePoint 2013 Fixed Width Content

I am modifying the oslo.master to show the content in fixed width.

1. Edit the required MasterPage

In SharePoint Designer 2013 open your site.
Click on MasterPage under Objects on left.

Edit the oslo.master

2. Find the div tag having id="s4-workspace"

Add following attribute

class="s4-nosetwidth"


style="margin:1px;"

3. Find the div tag having id="s4-bodyContainer"

Add following attribute

class="s4-nosetwidth"


style="width:960px; margin:0 auto;"

Ensure it looks like following:

Finally save the MasterPage and you are done!

No comments: