HTML CSS examples for CSS Layout:Flex Row
Layout a flex item and keep the same dimensions when it is pushed to a new row
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container{<!-- w ww. ja v a 2 s . c o m--> display: flex; flex-flow: row wrap; justify-content: space-between; margin-right: -10px; } .child{ max-width: 450px; min-width: 350px; margin-top: 10px; margin-right: 10px; background: blue; height: 400px; } </style> </head> <body> <div class="container"> <div class="child"> test content </div> <div class="child"> test content </div> <div class="child"> test content </div> </div> </body> </html>