Forums

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
    Posts
  • #147014
    gowda24
    Participant

    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.

    #147033
    Paulie_D
    Member

    Why? Because that’s the specification…that’s why. LOL

    http://www.w3.org/TR/CSS2/visuren.html

    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.