Spacing - Build a technical documentation page

Hello, i have almost finished my project “Build a technical documentation page” . Everything was fine before i have added MEDIA QUERY .

Now i have small spaces in left side and top of the web page:

And same spaces after i resize my window:

I just cant find my mistake. Please point out what im doing wrong!

https://codepen.io/SimonasZ/pen/MWaKvgz

Providing a link to your pen instead of screenshots helps people debug your code.

Nice catch! Here’s link: https://codepen.io/SimonasZ/pen/MWaKvgz

Try adding this as the first declaration in CSS;

* {
  margin: 0;
  padding: 0;
}

Edit: Should have explained. Browsers add some margin and padding by default. If you want to disregard that and just have your own you use the snippet above to clear it.

1 Like