Grow your CSS skills. Land your dream job.

how to remove white space between divs?

  • # August 11, 2010 at 5:56 pm

    hello all,

    i’ve been following the site trying to learn html..

    i’ve come across something i cannot wrap my head around how to fix.. there is a annoying white space between the navbar and body. does anybody know how to remove it?

    # August 11, 2010 at 6:19 pm

    It depends what your layout looks like, but that is probably due to extra margin or padding. Do you have a URL or some code that you’re working with?

    # August 11, 2010 at 11:55 pm

    Margins, padding, borders…

    look for anything in your css or html adding pixels/space to either the nav or the body

    And this probably happens to everyone when they first start with css!

    One thing to do while you are learning is experiment by attempting to increase the gap – add pixels to borders, margins and see what happens – get used to pushing Divs around.

    # August 12, 2010 at 2:10 am

    Thanks for posting,

    I thing White space depends upon padding, margin and word wrap tag on DIV, Let you show layout DIV CODE or you will try of this methods….

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".