HTML CSS examples for CSS Layout:Flex Container
Use flexbox to contain the contents inside a grid
<html> <head> <link rel="stylesheet" href="main.css"> </head> <!--from w w w . jav a 2 s .c o m--> <body> <div class="wrapper"> <div class="pic1"> Div2 </div> <div class="pic2"> <button>Div2</button> <img src="https://www.java2s.com/style/demo/Safari.png"> </div> <div class="pic3"> Div3 </div> <div class="pic4"> Div4 </div> <div class="pic5"> Div5 </div> <div class="pic6"> Div6 </div> </div> </body> </html>