HTML CSS examples for CSS Layout:Flex
Overflow flex layout row
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!-- w w w . ja v a 2 s .c o m--> height:100vh; width:calc(100% - 100px); padding:51px; } .search-form { margin:auto; height:100%; font-size:19px; background-color:Chartreuse; } .flex-row { width:100%; display:flex; flex-wrap:wrap; justify-content:space-around; flex-direction:column; align-items:center; } .flex-block { display:flex; flex-wrap:wrap; justify-content:center; } .block { flex-shrink:2; width:151px; background-color:yellow; margin:6px; } </style> </head> <body> <div class="container"> <div class="search-form flex-row"> <span class="block">hi</span> <div class="flex-block"> <span class="block">hi</span> <span class="block">hi</span> </div> <span class="block">hi</span> </div> </div> </body> </html>