vertical-align: middle
is not behaving as expected.
This resource discusses vertical align
A reference states the following:
The element should be positioned in the center of its parent element.
However, when examining the link below, "world"
does not appear centered within the parent element.
Check out this JSFiddle for an example
.hello {
font-size: 32px;
background-color: hotpink;
}
.world {
font-size: 20px;
background-color: lime;
vertical-align: middle;
}
<p><span class="hello">Hello</span> <span class="world">world</span></p>