by Andreas

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>

  • http://www.ts.avnet.com/clientsolutions/suppliers/microsoft/microsoft_sharepoint.html SharePoint Development

    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.