@webdevbynight
Posted
Hello,
Flexbox can be used, but you can also leave the span
elements displayed inline, in which case you just use the vertical-align
property on the first span
to center it vertically. In other words:
#money {
vertical-align: middle;
}
If you want to look further about vertical centering in CSS, just look at this resource on CSS Tricks.