Blueprint CSS for SharePoint
I like using Blueprint CSS, available at http://www.blueprintcss.org/, but it clashes a bit with some of SharePoint’s css settings, especially since SharePoint uses a lot of tables for layout and Blueprint’s table settings are generously padded and 100% wide (makes your SharePoint page look like it blew apart!).
But If you create another stylesheet with some overrides, and reference it after Blueprint’s, you can fix most of these problems. As I discover more of these fixes, I’ll add them here.
/*override Blueprint css table settings for SharePoint */
table {margin-bottom:0;}
th, td, caption {padding:0px 0px 0px 0px;}
table.ms-MenuUI,
table.ms-MenuUIItemTable,
.ms-consoleminiframe table,
.ms-globalbreadcrumb table,
.ms-bannerContainer table,
#MSOWebPart_Header table
{width:auto;}
Eric Webb - Work, life, and everything else… » Blog Archive » CSS Framework:
[...] Looks like it even works for Sharepoint! [...]
February 3, 2009, 1:16 pmBrent:
Hi,
I’ve included this style set in my custom masterpage and I’m still getting the blowout you mentioned. Would you mind providing an example of your CSS registrations for me?
Many thanks!
June 5, 2009, 2:30 pmdkitchen:
Sorry for the late reply.
Try putting it into a content editor web part and see if that works. If so, maybe the problem was that your styles were being overridden further down the page.
In the mean time I’ll try to dig up an example.
June 16, 2009, 6:59 pm