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

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #147014

    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.


Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.