Sharepoint 2010 pages are
rendered with flexible layout i.e. they stretch as according to the browser
resolution. Flexible layout pages are not desired for public websites
as it would damage the look and feel of the website. For this reason
most websites are created with fixed width pages. Creating fixed
width sites in Sharepoint
2010 is acheived by
making few CSS tweaks to Sharepoint Master page style sheets.
The default Sharepoint 2010 flexible layout sample is shown below
The default Sharepoint 2010 flexible layout sample is shown below
Adding the below
CSS code to the core.css file will change the Sharepoint 2010 site
layout to fixed width and the websites will appear consistent in any
browser resoution
body{
overflow:auto !important;
}
overflow:auto !important;
}
form
{
width:980px;
margin: auto;
}
Sharepoint 2010 website after applying the fixed width tweak will appear as below
{
width:980px;
margin: auto;
}
Sharepoint 2010 website after applying the fixed width tweak will appear as below
To learn more about IOTAP Sharepoint website development and branding visit
No comments:
Post a Comment