Why does the html
page adds a space every time I make a new line of code in the file?
When I make all of the html
tags in the same line of code the spaces disappear.
* {
box-sizing: border-box;
}
#A {
background-color: red;
max-width: 60px;
min-width: 60px;
border-right: solid 2px gray;
display: inline-block;
}
<!DOCTYPE html>
<html>
<body>
<span id="A">A</span>
<span id="A">A</span>
<span id="A">A</span>
<span id="A">A</span>
<span id="A">A</span>
</body>
</html>