HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> h2+div{ display: flex; width: 100%; min-height: 150px; border: 1px solid #8c8c8c; } h2+div > div{ width: 90px; height: 90px; border: 1px solid #8c8c8c; margin: 10px; } #parent{ flex-wrap: nowrap; } #parent1{ flex-wrap: wrap; } #parent2{ flex-wrap: wrap-reverse; } </style> </head> <body> <h1>CSS flex-wrap Property</h1> <h2>flex-wrap: nowrap; (default)</h2> <div id="parent"> <div>Div 1</div> <div>Div 2</div> <div>Div 3</div> </div> <h2>flex-wrap: wrap;</h2> <div id="parent1"> <div>Div 1</div> <div>Div 2</div> <div>Div 3</div> </div> <h2>flex-wrap: wrap-reverse;</h2> <div id="parent2"> <div>Div 1</div> <div>Div 2</div> <div>Div 3</div> </div> <p><strong>Note</strong>: Try to reduce the width of this output window.</p> </body> </html>
OUTPUT
×

Save as Private