why there's a default margin in html <body>
body {
margin: 0px;
padding: 0px;
...
}
why there's a default margin in html <body>
body {
margin: 0px;
padding: 0px;
...
}
css my body have margin top
You probably have an element with margin-top as one of the first children of body.
Read up on collapsing margins.
Purely as a simple test, set padding: 1px on body. If the gap goes away, I'm right.
/*
from stackoverflow.com ->
css & html5: why does my body have a spacing at the top
*/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us