HTML CSS examples for CSS Layout:Flex Row
Layout elements in a row using flexbox and scrolling
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> section {<!-- www .j a v a 2s .c o m--> border: 2px solid red; height: 100px; overflow:auto; } section > div { display: flex; } section > div > div { flex: 1; margin: 5px; background-color: green; } </style> </head> <body> <section> <div> <div> this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test this is a test </div> <div> b </div> <div> c </div> <div> d </div> <div> e </div> <div> f </div> </div> </section> </body> </html>