How do I remove the gap from the top of this div

Theres a space between the top of the div and the viewport. how do I remove the gap

Add overflow:auto; to your .page class.

The problem is because the <p></p> element within the .page class has a margin-top value which is pushing the .page container down.

1 Like

You don’t need to give html a height of 100%. try removing it.