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

后端 未结 6 1492
日久生厌
日久生厌 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 06:04

    Place this line after it:

    This should extend the div they are in to fit around them.

    Here's a live demo, to illustrate how to do it.

提交回复
热议问题