Position absolutely positioned DIV relative to (also absolutely positioned) parent DIV?

前端 未结 3 578
梦毁少年i
梦毁少年i 2021-01-23 14:23

This is one problem I always have when i\'m fixing layouts. I\'ve got a absolutely positioned DIV, I place a child-DIV inside which also needs to be absolutely positioned. But I

3条回答
  •  青春惊慌失措
    2021-01-23 14:46

    You might want to ask yourself if you really need to use multiple, nested absolutely positioned elements.

    Otherwise, it might be best to go for the wrapper solution.

提交回复
热议问题