Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Extra space between divs

    Greetings!

    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!

  • #2
    New Coder
    Join Date
    Nov 2009
    Location
    Portland Oregon
    Posts
    33
    Thanks
    0
    Thanked 6 Times in 6 Posts
    The following seemed to work...

    Code:
    * { /*--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;
    }

  • #3
    New to the CF scene
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #4
    Regular Coder optimus203's Avatar
    Join Date
    Sep 2008
    Location
    CT
    Posts
    317
    Thanks
    22
    Thanked 16 Times in 15 Posts
    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.
    Always thank those CF Users who help you solve issues...
    Connecticut Web Design


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •