HTML
<span class="symbol">$</span>
<span class="value">400</span>
This code snippet displays the symbols "$" and "400" at the same level in the document.
However, if we introduce some styling using CSS:
.symbol {
font-size: 2em;
}
We notice that the number "400" is now pushed down due to the changes made to the style of the symbol "$".
The question arising here is: Why does changing the styling of one element affect the positioning of another?
Thank you for your help!