I already set the border, padding and margins for 0px for the body and my two divs. But I still canβt get rid of the gap.
#body{ padding: 0px ; border:0px ; margin:0px; width:100%; height:100vh; } #mainPage { height:100vh; width:100%; background-color: #2469ff; padding: 0px; border:0px; margin:0px; } #navBar{ height:70px; width:100%; Background-color: #1f1f1f; padding: 0px ; border:0px ; margin:0px; }
What all my CSS is for now.
Here is my HTML. It is very simple at the moment.
<html> <head> <title> Ice Arena </title> </head> <body> <div id="mainPage"> <div id="navBar"> </div> <div id="leftPanel"> </div> </div> </body> </html>
Like I said, I donβt know why he does it. I'm sure I made a mistake, I'm still new to CSS and HTML.
Musty source share