Answer the question
In order to leave comments, you need to log in
Why does the browser automatically have padding on the sides?
Why does the browser automatically have side margins when writing HTML code?
How to remove them please give advice.
Answer the question
In order to leave comments, you need to log in
The browser by default sets page indentation: css-property margin
for html-tag body
.
To remove unnecessary indentation, it is considered bad practice to write the following css:
* {
margin: 0;
padding: 0;
}
reset.css
or normalize.css
. Cons of this trip:.page {
margin: 0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question