DEV Community

Cover image for Gallery with varied image sizes using aspect-ratio and object-fit
SnippFlow
SnippFlow

Posted on

Gallery with varied image sizes using aspect-ratio and object-fit

This snippet has a clean and simple gallery with images of different sizes, all in 3:2 aspect ratio

See the following Codepen for a demo:

Full article: Gallery with varied image sizes using aspect-ratio and object-fit
CSS Snippets

Top comments (0)

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools canโ€™t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay