How are inline-block vertically aligned?
Given the html and the css I would expect the 3 divs to line up horizontally, yet they do not: https://codepen.io/bjorn-pettersen/pen/xxeaaEg
What am I missing?
What am I missing?
<section>
<div class="a"></div>
<div class="b">b</div>
<div class="c"></div>
</section>div {
width: 2rem;
aspect-ratio: 1;
margin: .5rem;
background-color: rebeccapurple; color: white;
display: inline-block;
}