Degree Blogg
7Apr/111

Sharepoint 2010 – webpart zone padding / spacing

To add some padding between the webparts within a webpart zone either add this in your custom .css:

.ms-PartSpacingVertical
{
    margin-bottom: 0px;
}

.ms-PartSpacingHorizontal
{
   margin-right: 20px;
}

Or, if you just want it on a specific page while the rest of your site is unaffected, use the semi-dirty method of adding a Content Editor Webpart with a <style> element (edit the HTML source):

<style type="text/css">

.ms-PartSpacingVertical
{
    margin-top: 20px;
}

.ms-PartSpacingHorizontal
{
   margin-right: 20px;
}

</style>

Posted by Andreas

Comments (1) Trackbacks (0)
  1. The SharePoint Development Standards have been updated with a few minor SharePoint 2010 specific tweaks, the addition of database access recommendations, and a PDF/Word version of them for easier download.


Leave a comment

(required)

* Copy this password:

* Type or paste password here:

8,550 Spam Comments Blocked so far by Spam Free Wordpress

No trackbacks yet.