Float div's to the right in left-to-right order?

后端 未结 4 1472
太阳男子
太阳男子 2020-12-13 08:45

I have multiple div\'s I want to display in a horizontal row. Normally, the way I\'d do this is to simply float them to the right and put them in the markup in reverse order

4条回答
  •  一向
    一向 (楼主)
    2020-12-13 09:17

    Using display:inline-block might not work as expected with elements of variable height.

    So you might want to use:

    Left
    Middle
    Right

    See: demo of both -- inline and float-float.

提交回复
热议问题