TAG
CSS
Result
Run
License
<div class="grid-wrapper"> <div class="item1"><h2>1</h2></div> <div class="item2"><h2>2</h2></div> <div class="item3"><h2>3</h2></div> <div class="item4"><h2>4</h2></div> <div class="item5"><h2>5</h2></div> </div>
.grid-wrapper { display: grid; grid: auto / repeat(auto-fill, minmax(100px, 150px)); grid-gap: 10px; justify-content: center; padding: 10px; background: #00cbff; } .grid-wrapper > div { background: rgba(255, 255, 255, 0.8); text-align: center; }
Console
expand_less
License
License
by DevDic
Close