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

后端 未结 4 1475
太阳男子
太阳男子 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:14

    You could apply a text-align: right to the container and a display: inline-block in place of the floating:

    Left
    Middle
    Right

    DEMO

提交回复
热议问题