Is there a way to have elements be positioned to the right without removing them from the flow?

后端 未结 6 1511
日久生厌
日久生厌 2021-01-20 05:51

I have a div with some inline elements inside it. I want to put one of the elements on the left and the rest over on the right:

+---------------------------+         


        
6条回答
  •  感情败类
    2021-01-20 05:53

    Currently floats are probably the only way to get the desired result. You can also float the parent container, but then you'll then have to give it a width. This method can quickly lead to a 'float everything' layout, but it works. http://jsfiddle.net/mjzNP/

提交回复
热议问题