The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › how to remove white space between divs?
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?
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.
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….