Flex implements a layout similar to floating left and right.

clipboard.png

how can I use flex to implement a layout similar to the left and right layout in the red box above

the traditional method is float:left on the left and float: right, on the right. If you don"t know how to implement it with flex, please post the code

.
Mar.12,2021

A div, on the left and a div, parent element on the right only need display:flex; Justify-content:space-between


justify-content:space-between
http://www.lixuejiang.me/2016.


you can take a look at teacher Ruan's blog. It also teaches flex grammar and uses
http://www.ruanyifeng.com/blo.


you'd better find a flex tutorial to play with yourself. Your own practice is more important

.
Menu