View Full Version : Extra space between divs

05-27-2010, 09:15 PM

I having a problem with extra space between my divs. You can view the page at http://www.synergeticweb.com/ccos/

I read the FAQs and did a little bit of google'ing and trying different solutions, but I can't seem to nail it down.

I'm pretty sure I have some unneccessary code in the css file that I added when trying to find a solution.

Thanks in advance for the help!

05-27-2010, 11:00 PM
The following seemed to work...

* { /*--make all to 0 as default--*/
padding: 0;
margin: 0;

#content {
width: 797px;
background: #eeeeee;
margin-left: auto ;
margin-right: auto ;
margin-top: 0px;
margin-bottom: 0px;

05-27-2010, 11:58 PM
Thanks -- that seemed to work for the space between the divs.

So how do I put space between the top and the h1, and between the paragraphs without pushing my entire div down again?

05-28-2010, 01:38 AM
You can add this declaration to your stylesheet:

#content h1 {padding:5px 0 5px 0;}

I wrote it out this way so you can define different values for top and bottom padding. 1st value is for padding-top, 2nd for padding-left, 3rd for padding-bottom, and 4th for padding-left.