Personal portfolio width 100%

Howcome the red portion of my website doesn’t take up 100% of the screen like I coded it too?




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

1 Like