Posted January 22nd, 2010 by Eric Webb
If you are deploying custom page layouts using a feature, DO NOT OPEN THEM IN SHAREPOINT DESIGNER! Not even once. Not just to “take a look”. Not for giggles.
Why? Because once you open that page layout in SharePoint Designer, it gets un-ghosted. This does two things. First, it means [...]
Posted September 1st, 2009 by Eric Webb
In a client project I’m working on, the design calls for dividers in between each navigation link. No problem. Here’s the CSS:
.ms-topnav a
{
border-left-style:solid !important;
border-left-color:#fff !important;
border-left-width:1px !important;
padding: 0 10px 0 10px;
}
However, this leaves the border on the first element of the navigation, which we don’t want. There’s no way to select that [...]
Posted August 25th, 2009 by Eric Webb
Here’s a simple stylesheet that I’m going to start using as a basis for customizing all of my Sharepoint team sites.
/* Top Bar */
.ms-globalbreadcrumb
{
background-color:#7caf72;
}
/* Header */
.ms-globalTitleArea
{
background:none !important;
}
/* Navigation */
.ms-bannerContainer, .ms-pagemargin, .ms-navframe, .ms-leftareacell
{
background:none !important;
}
.ms-nav
{
background-image:none !important;
}
.ms-topnavContainer, .ms-topnavselected, .ms-topnav {
border: none;
background: none;
}
table.ms-topnavselected, table.ms-topnav {
height: 30px;
margin-left: 1px;
margin-right: 1px;
}
.ms-topnavContainer div
{
background-color:transparent !important;
}
.ms-topNavFlyOuts, .ms-topNavFlyOuts a:link
{
background-color:transparent !important;
}
/* Body */
body {
text-align: center;
margin: 0px [...]
Posted April 9th, 2009 by Eric Webb
Helpful article just posted:
http://msdn.microsoft.com/en-us/library/dd638968.aspx
Posted April 1st, 2009 by Eric Webb
While working on a Sharepoint css file, I was able to use a nift regex instead of copying and pasting all over the place.
The tag I had looked like this:
#MSOZoneCell_WebPartWPQ4 td h3 a
I wanted to add a tag on the end so that it looked like this:
#MSOZoneCell_WebPartWPQ4 td h3 a, #MSOZoneCell_WebPartWPQ5 td h3 a
I used [...]
Posted February 27th, 2009 by Eric Webb
I always wondered how to style a single webpart on the page.
http://www.heathersolomon.com/blog/articles/Controlling-Single-Web-Parts-with-CSS.aspx
Been dealing with CSS for a long time and never knew about attribute selectors. Only issue is you can’t be in Quirks mode, which does mess up the rendering of some elements in SharePoint.
Posted January 20th, 2009 by Eric Webb
I just completed a medium sized upgrade (83GB) for a client from Sharepoint 2003 to 2007 and thought I’d share a few things I took away from it:
You’re probably going to need to create a new Site Definition to map to the old one if the old one is customized at all
Set expectations with users [...]