HTML CSS examples for CSS Layout:Flex Wrap
Create layout with CSS flex wrap
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {}<!-- www . ja v a 2s . c o m--> section { display:flex; flex-wrap:wrap; } div { flex-basis:11%; flex-grow:2; margin:0 11px; } </style> </head> <body> <section> <div> 1 </div> <div> 2 </div> <div> 3 </div> <div> 4 </div> <div> 5 </div> <div> 6 </div> <div> 7 </div> <div> 8 </div> </section> </body> </html>