css my body have margin top

Solutions on MaxInterview for css my body have margin top by the best coders in the world

showing results for - "css my body have margin top"
Max
18 Feb 2018
1You probably have an element with margin-top as one of the first children of body.
2
3Read up on collapsing margins.
4
5Purely as a simple test, set padding: 1px on body. If the gap goes away, I'm right.
6
7/* 
8from stackoverflow.com ->
9css & html5: why does my body have a spacing at the top
10
11 */