MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

Remove white space around a web part

  Asked By: KP    Date: Mar 24    Category: MOSS    Views: 7608

I'm using MOSS, I can not use SPD on our server for reasons beyond my control. I have a web part page that has a large column on the left, a small on the right and a header. When ever I shrink the web parts in the large left column, there is that infuriating white space that won't go away between the right & left columns. All of the web parts have been shrunk, there is nothing in the header.

I cannot use SPD to drop the padding size down to 0px.

I've tried the following CSS code in a content editor webpart, but it doesn't seem to be working.
<style type="text/css">
margin-top: 0px;
width: 0px;

Any thoughts and suggestions are most appreciated.
Thank you!



1 Answer Found

Answer #1    Answered By: Susan Hernandez     Answered On: Mar 25

Basically I used the I.E. Developer Tools to see what parts needed what. And what I discovered is that the TD that has the ID "_invisibleIfEmpty" needs to be specifically told to set the padding to 0 px.

You can do this with CSS

#_invisibleIfEmpty {
padding: 0px;

Or you can do this with JQuery

$("#_invisibleIfEmpty").attr("style", "padding:0px");

Didn't find what you were looking for? Find more on Remove white space around a web part Or get search suggestion and latest updates.