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
Roma
April 15, 2020, 5:33pm
2
Providing a link to your pen instead of screenshots helps people debug your code.
Roma
April 15, 2020, 5:49pm
4
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