TAG
CSS
Result
Run
License
<div class="wrapper"> <div>A</div> <div>B</div> <div>C</div> </div>
.wrapper { width: 300px; height: 200px; display: flex; flex-wrap: wrap; border: 1px solid #CCC; align-content: center; } .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 { width: 100%; height: 50px; }
Console
expand_less
License
License
by DevDic
Close