Skip to content

Instantly share code, notes, and snippets.

View iam-amanxz's full-sized avatar
💻
Working from home

Husnul Aman iam-amanxz

💻
Working from home
View GitHub Profile
@iam-amanxz
iam-amanxz / style.css
Created November 16, 2023 08:27
CSS Card Layout with Subgrid Snippet
.main-grid {
display: grid;
grid-auto-flow: dense;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
grid-auto-rows: 120px auto auto auto;
container-type: inline-size;
}
.card {