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

后端 未结 6 1507
日久生厌
日久生厌 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

    You need to clear out your floating elements like this :

    My Fiddle

    If you dont-clear it'll be like this : My Fiddle (Floats not cleared)

提交回复
热议问题