Tsallaka zuwa abun ciki
Justice Tech School

Project: Card Grid

Make a responsive card grid with auto-fit and minmax. Each card gets padding, a border radius, a hover lift and a shadow.

Example
<style>
.g { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px } .c { background: #1e293b; padding: 10px; border-radius: 8px; transition: transform .2s } .c:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,.4) }
</style>
<div class="g"><div class="c">One</div><div class="c">Two</div><div class="c">Three</div></div>

Exercise

Auto columns.

repeat(auto-, minmax(90px, 1fr))

Quiz Test

What makes the grid responsive?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.