HTML CSS examples for CSS Layout:Flex Column
Create this multi column flexbox layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from w ww . j a v a 2 s . c o m--> margin: 0; } .wrapper { display: flex; flex-wrap: wrap; } .wrapper > div { flex: 1; padding: 20px; border: 1px solid red; box-sizing: border-box; } .wrapper > div:last-child { flex-basis: 100%; } @media (min-width: 600px) { .wrapper { flex-direction: column; height: 100vh; } .wrapper > div:first-child { flex-basis: 100%; } .wrapper > div:last-child { flex-basis: 0; } } </style> </head> <body> <div class="wrapper"> <div> A </div> <div> B </div> <div> C </div> </div> </body> </html>