Stop absolutely positioned div from overlapping text

前端 未结 8 2084
旧时难觅i
旧时难觅i 2020-12-24 06:03

Here is a simplification of my layout:

8条回答
  •  心在旅途
    2020-12-24 06:49

    You should set z-index to absolutely positioned div that is greater than to relative div.

    Something like that

    Content of unknown length

    Content of unknown height

    z-index sets layers positioning in depth of page.

    Or you may use floating to show all text of unkown length. But in this case you could not absolutely position your div

    Content of unknown length Content of unknown length Content of unknown length Content of unknown length Content of unknown length Content of unknown length Content of unknown length Content of unknown length

    Content of unknown height

提交回复
热议问题