TAG
CSS
Result
Run
License
<div class="grid-wrapper"> <div><h2>1</h2></div> <div><h2>2</h2></div> <div><h2>3</h2></div> <div><h2>4</h2></div> <div><h2>5</h2></div> </div>
.grid-wrapper { display: grid; grid-gap: 10px; grid-template-areas: ". . ."; grid-auto-columns: auto auto minmax(30px, 150px); padding: 10px; background: #00cbff; } .grid-wrapper > div { background: rgba(255, 255, 255, 0.8); text-align: center; } .grid-wrapper > div:first-child { grid-column: span 4; background: #FFFF00 !important; }
Console
expand_less
License
License
by DevDic
Close