Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .flex-container { display: flex; flex-wrap: wrap; align-content: flex-end/* Use another value to see the result */; min-height: 250px; padding: 10px; background-color: #1faadb; } .flex-container>div { width: 45%; height: 45px; margin: 5px; border-radius: 3px; background-color: #8ebf42; } .flex-container .one, .flex-container .nine { width: 23%; } .flex-container .two, .flex-container .six { width: 9%; } .flex-container .three { width: 25%; } .flex-container .four { width: 35%; } .flex-container .five, .flex-container .eleven { width: 32%; } .flex-container .seven, .flex-container .ten { width: 6%; } </style> </head> <body> <p>flex-end</p> <div class="flex-container"> <div class="one"></div> <div class="two"></div> <div class="three"></div> <div class="four"></div> <div class="five"></div> <div class="six"></div> <div class="seven"></div> <div class="eight"></div> <div class="nine"></div> <div class="ten"></div> <div class="eleven"></div> </div> </body> </html>