How to remove an element from the flow?

前端 未结 9 1728
Happy的楠姐
Happy的楠姐 2020-12-24 00:11

I know position: absolute will pop an element from the flow and it stops interacting with its neighbors.

What other ways are there to achieve this?

9条回答
  •  抹茶落季
    2020-12-24 00:29

    Another option is to set height: 0; overflow: visible; to an element, though it won't be really outside the flow and therefore may break margin collapsing.

提交回复
热议问题