HTML CSS examples for CSS Layout:Layout
CSS - Horizontal Div Layout with scrollbar
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .cell {<!-- ww w . j a va 2s . c o m--> float:right; width:201px; height:201px; border:3px solid Chartreuse; margin:11px; font-size:37px; } .outer { width:501px; height:501px; overflow:auto; display:flex; flex-direction:column; flex-wrap:wrap; align-content:flex-start; } @supports (not (flex-wrap: wrap)) and (-moz-columns: 4) { .outer { -moz-column-count:5; column-count:5; display:block; width:121%; } </style> </head> <body> <div class="outer"> <div class="cell"> Lor </div> <div class="cell"> Lor </div> <div class="cell"> Lor </div> <div class="cell"> Lor </div> <div class="cell"> Lor </div> <div class="cell"> Lor </div> <div class="cell"> Lor </div> <div class="cell"> Lor </div> </div> </body> </html>