TAG
CSS
Result
Run
License
<div class="wrapper"> <div>A</div> <div>B</div> <div>C</div> <div>D</div> <div>E</div> </div>
.wrapper { width: 300px; height: 200px; display: flex; flex-wrap: wrap; border: 1px solid #CCC; margin: auto; } .wrapper > div { width: 100px; } .wrapper > div:nth-child(1) { background-color: #80e1f2; } .wrapper > div:nth-child(2) { background-color: #f9ee9a; } .wrapper > div:nth-child(3) { background-color: #EAEAEA; } .wrapper > div:nth-child(4) { background-color: #fcbe41; } .wrapper > div:nth-child(5) { background-color: #e3f794; }
Console
expand_less
License
License
by DevDic
Close