Aug.15

How to remove blank space around the web part in SharePoint 2013

Extra space is added to SP webpart by default. It is very unuseful when you organize page content. To remove the extra space injected to the webpart, add the below css in Content Editor webapart on your page.
<style type="text/css">
     .ms-webpartPage-root {
         border-spacing: 0px !important;
     }
       .ms-webpartzone-cell {
         margin: 0px !important;
     }
 </style>
Share this Story:
  • facebook
  • twitter
  • gplus

Leave a comment