Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Titre du document</title> <style> .example { width: 200px; height: 200px; border: 1px solid #c3c3c3; display: -webkit-flex; display: flex; -webkit-flex-flow: row wrap; flex-flow: row wrap ; } .example div { width: 50px; height: 50px; } </style> </head> <body> <h2>Exemple de la propriété flex-flow</h2> <div class="example"> <div style="background-color: #8ebf42;">A</div> <div style="background-color: #1c87c9;">B</div> <div style="background-color: #ccc;">C</div> <div style="background-color: #666;">D</div> <div style="background-color: #4c4a4a;">E</div> <div style="background-color: #c6c4c4;">F</div> </div> </body> </html>