The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Display inline-block on block level elemts
Just curious to know why does the display inline-block applied on block level elements changes the vertical alignments.
The div’s get aligned properly on setting vertical alignment to top.
Why? Because that’s the specification…that’s why. LOL
I guess someone cleverer than me could go into a much more detailed explanation about the DOM and positioning systems but I really don’t need one…it just works and I like it.
It’s nice to have options…top/middle/bottom.