How can I reorder my divs using only CSS?

后端 未结 24 1476
傲寒
傲寒 2020-11-22 01:53

Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div

24条回答
  •  野的像风
    2020-11-22 02:17

    Just use flex for the parent div by specifying display: flex and flex-direction : column. Then use order to determine which of the child div comes first

提交回复
热议问题