how to position two divs above each over

后端 未结 5 647
耶瑟儿~
耶瑟儿~ 2020-12-14 00:32

Is there any way to start drawing divs from the same point? That means if I add new div and then I add another div, they will appear above each other. Because I want to move

5条回答
  •  伪装坚强ぢ
    2020-12-14 01:20

    Use z-index to position divs on top of one another:

    [http://www.w3schools.com/Css/pr_pos_z-index.asp][1]

    So, you'll position the divs with absolute/relative positioning and then use z-index to layer them:

    http://www.w3schools.com/cssref/pr_pos_z-index.asp

提交回复
热议问题