web page elements overlapping each other even when using percentage values in css

前端 未结 2 385
[愿得一人]
[愿得一人] 2021-01-18 23:49

I have a page with structure like this. I want to divide the page into 6 sections so I have made 6 outer divs.


2条回答
  •  执念已碎
    2021-01-19 00:29

    You can try this css code to fix that

    section{
        position: relative;
        height: 100%;
    }
    

提交回复
热议问题