I have an HTML document with the following CSS style:
h1 {
font-size: 4.2em;
text-align: center;
font-family: "Arial Black", Gadget, sans-serif;
}
When inspecting my page in the browser I am seeing this additional styling being added without my input:
h1 {
display: block;
font-size: 2em;
-webkit-margin-before: 0.67em;
-webkit-margin-after: 0.67em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;
font-weight: bold;
}
It says browser stylesheet
where normally it would have the css file name and line number.
I found the solution was to set my H1's margins to 0. But why are those mystery margins being added in the first place?