I spent a lot of time creating centered MasterPages for SharePoint 2010 using Adventure Works and Minimal MasterPages as starting point.
There was a number of issues when using these pages (as starting points). I struggled to get the QuickLaunch to appear on the adventure works MasterPage without distorting the content and also struggled with compatibility with IE7 and other random combinations of browsers. Starting from scratch with the minimal MasterPages creates a huge amount of work rewriting all of the CSS (although this would be the preferred method if I had time!)
In the end I went back and started to make my MasterPage based on the V4 master. Here is how I managed to get it to work by using CSS and very minor changes to the MasterPage itself. I based it around blogs I had read by Randy Drisgill and a few of my own trial and error experiences http://blog.drisgill.com/2010/12/my-real-world-branding-with-sharepoint.html.
I set the class s4-nosetwidth to the workspace div (this stops SharePoint setting the width automatically). We can then wrap our content in a table (single cell) or a div. This will be the container for the page. The reason we dont set a width to the workspace is because this would put the scroll bar in the center of the page.
In the CSS file, you just need to set the width and centering of this table….simple! I have also included a fix for IE7 which crops content. This is a bug found in the standard V4 master. You may still find some issues using IE7 with this MasterPage but much less than using the Adventure works master or using the V4 master with the alternative method of centering.
/* —————width and centering——————-*/
/* Center the page */
margin: 0 auto!important;
/* ———end of width and centering——————*/
Windows 2008 SP2 or R2 doesn’t have web dav installed on IIS by default.
SharePoint actually uses it’s own web dav, so IIS web dav does not need to be installed. If you install IIS web dav on Server 2008 SP2 or R2, it will conflict with the SharePoint web dav and cause the explorer view, upload multiple documents, upload pictures to stop working when connecting using a windows 7 client.
Here’s one of my most recent designs for a school in Bradford. It’s SharePoint 2007 site using CSS, master pages and page layouts. It’s an interface for a primary school which hopefully makes it easier to use without losing the SharePoint functionality.
When using the Blueband masterpage or a custom masterpage, you may find that the drop-down menus don’t work in Internet Explorer 8 (IE8).
There is a fix for internet explorer or you can view the page in compatibility mode. The only problem is you can’t expect all your users to know how to do this. Your site will be unusable to some of your users.
To fix this problem include the following meta tag into your masterpage:
It will force IE8 to render the page as it would if it was still IE7. Maybe not the best of fixes but all that Microsoft provide at the moment. The SP2 update to sharepoint just adds this line into the Masterpages (this will not add it into custom masterpages that you have already made!).
Ok, your publishing pages inherit fine but what if you want to inherit a master page on multiple site collections?
Unfortunately there is no easy way to do this if you want it to apply to the form pages as well, you could apply that master page to the entire web application but this would restrict one master page for the site. You need to create a site feature based on this master page template.
1. Open your master page in SharePoint Designer 2007 and make the appropriate changes to the site.
3. Copy and paste your master page code into notepad and save as masterpageName.master
4. Follow Heather Solomon’s excellent tutorial on creating a site feature and use your MasterpageName.master as the master page template
I’ve been working with Microsoft SharePoint since 2003 and specialise in branding, implementation and design of SharePoint installations. I’m a Microsoft Certified Professional and graduated from The University of Derby with BSc (Hons) in Digital Entertainment. I currently run a SharePoint and Office 365 consultancy business called Cloud Design Box Ltd. I work with clients across the UK and all over the world, please feel free to contact me via the contact page if you require consultancy or via twitter for general questions.