skip to Main Content

Reordering columns in CSS grid

I have the following HTML: <ul> <li> <p>A</p> <p>B</p> <p>C</p <p>D</p> </li> <li> <p>AAA</p> <p>BBB</p> <p>CCC</p <p>DDD</p> </li> <li> <p>A</p> <p>B</p> <p>C</p <p>D</p> </li> <li> <p>AAAAAA</p> <p>BBBBBB</p> <p>CCCCCC</p <p>DDDDDD</p> </li> </ul> The actual number of lis is variable, but each…

VIEW QUESTION

Html – CSS sticky cards using grid layout

I want to have a layout of sticky cards using grid layout. This is what I managed to achieve: <div class="cards"> <div class="card">1</div> <div class="card">2</div> <div class="card">3</div> <div class="card">4</div> <div class="card">5</div> </div> :root { --card-top-offset: 3rem; --card-h: 36rem; } .cards…

VIEW QUESTION
Back To Top
Search