HTML CSS examples for CSS Widget:Div Table
Layout div as table using flex layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!-- w w w . j a v a2 s . c om--> display:-webkit-flex; -webkit-flex-flow:row wrap; width:351px; } .item { width:100px; min-height:201px; border:2px solid; margin:6px; } .item:nth-child(even) { min-height:100px; } </style> </head> <body> <div class="container"> <div class="item"> Item 1 </div> <div class="item"> Item 2 </div> <div class="item"> Item 3 </div> <div class="item"> Item 4 </div> <div class="item"> Item 5 </div> </div> </body> </html>