Text wraps around floating div but borders and
s do not

后端 未结 5 2071
南笙
南笙 2021-01-04 05:09

I have a div that is float: right and it is inside a parent div. There are p elements inside that same parent div also, and the text wraps around t

5条回答
  •  无人及你
    2021-01-04 05:56

    Div cannot wrap around another div. Wrapping is text-only property. You can simulate wrapping by setting the margin-right for the master div to the width of the div you want it to wrap, but text wil not flow under the inset div.

提交回复
热议问题