How to remove an element from the flow?

前端 未结 9 1715
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:44

    None?

    I mean, other than removing it from the layout entirely with display: none, I'm pretty sure that's it.

    Are you facing a particular situation in which position: absolute is not a viable solution?

提交回复
热议问题