Howcome the red portion of my website doesn’t take up 100% of the screen like I coded it too?
Code: https://codepen.io/drdre5/pen/OJyEKKY
Thanks,
Andrej
Howcome the red portion of my website doesn’t take up 100% of the screen like I coded it too?
Code: https://codepen.io/drdre5/pen/OJyEKKY
Thanks,
Andrej
Hello there,
You may want to add this to the start of almost every project you do:
* {
padding: 0;
margin: 0;
}
By default, Chrome especially, browsers add their own margin/padding to the root element of the page to prevent other elements coming into contact with the edge of the browser window.
Hope this helps