I was doing an organization on some code here before commitar and realized that an indentation in HTML caused a problem in my layout, so I went to inspect to find out what I had done wrong besides indenting, and found that the line breaks for indentation they ended up increasing the space between 2 elements.
Here is an example that demonstrates the same indented and inline html structure (also here ):
<div style="font-size: 44px;">
<span>28.3</span>
<span>km</span>
</div>
<div style="font-size: 44px;"><span>28.3</span><span>km</span></div>
Questions:
- Why does this occur?
- How to indent my code and not have this space?