Within a single div element, there are two child divs styled as inline-block with different font sizes. This results in varying heights for each child div.
What criteria does the browser use to vertically position the left child div? Why don't they both start at the very top?
Below is the code snippet:
<div>
<h4>Got Some Ideas for us?</h4>
<div style="display: inline-block; width: 300px;background-color: rgb(80, 133, 130);font-size: 16px;">
<span>AAA</span>
</div>
<div style="display: inline-block;width: 300px;background-color: rgb(154, 16, 99);font-size: 88px;">
<span>BBB</span>
</div>
</div>
The outcome of this code is visible in the image linked below. Thank you!