Ask coding questions

← Back to all posts
Error
WilliamXing (50)

How come on the top, there is some white space?

Answered by Coder100 (18057) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18057)

headers always have some margin on the top and bottom. Just remove it!

<h1 class="k" style="margin: 0;">hi</h1>

also, body has padding too, so add this:

body {
  margin: 0;
}