How do I automatically stack divs vertically inside a parent?

前端 未结 6 1497
遇见更好的自我
遇见更好的自我 2021-02-03 21:56

Here\'s what I am trying to accomplish...

  1. \"parent\" has position:relative
  2. \"div 1-3\" have position:absolute

However, whenever I do this,

6条回答
  •  清酒与你
    2021-02-03 22:16

    In css file use...

    div
    {
        display : block;
    }
    

    Which will give a break line for each div block and that feature is by default and don't use relative - absolute technique.

提交回复
热议问题