CSS vertical-alignment - what am I not understanding?
问题 I'm messing around with everyone's favorite CSS topic, vertical alignment. I found a little case that makes no sense to me, which probably means I'm failing to understand something about CSS. I have the following HTML (it's for exploration code, so please excuse the inline styles): <div style="height: 40px; line-height: 40px; vertical-align: middle; border: 1px solid blue; margin: 1em 2em;"> <span style="background-color: Blue; height: 30px; width: 30px; margin: 5px 1em; display:inline-block;