The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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

    This reply has been reported for inappropriate content.

    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….


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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed