Beautiful UI shouldn't require messy code. ✨ A while ago, I built this feature section for TipMi....Beautiful UI shouldn't require messy code. ✨ A while ago, I built this feature section for TipMi....
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Beautiful UI shouldn't require messy code. ✨
A while ago, I built this feature section for TipMi. Looking at the varied card sizes, you might think it requires complex positioning or endless Flexbox containers. The secret weapon? CSS Grid with grid-template-areas.
Using Grid for this specific architecture is the easiest, most scalable approach. You get complete two-dimensional control, allowing you to span items across multiple columns and rows seamlessly while keeping the underlying HTML structure incredibly clean and readable.
Take a look at the live build here: https://tipmi-dev.vercel.app/
Post image
Paul 's avatar
Great design 👍
Victor's avatar
Thank You
Nugraha's avatar
Nutaraline logo
@Victor Olabisi Using grid-template-areas for the varied TipMi card sizes keeps the HTML readable. Did you add a separate area map for the mobile layout?
Victor's avatar
For mobile I completely simplified it! Instead of keeping the desktop map, I just allowed the grid elements to stack vertically on top of each other. Much better for readability on phones @Nugraha
Eniola 's avatar
Chemidox Clinical Trials logo
Nice Layout 🔥
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started