[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/sm/ - Social Media

Platform strategies, engagement & social analytics
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1780970026292.jpg (182.34 KB, 1880x1253, img_1780970019425_4uwqwdzi.jpg)ImgOps Exif Google Yandex

3df2d No.1799

fr use this
object-fit: cover;
property to prevent ur images from looking squished or stretched when resizing containers. applying it ensures the aspect ratio stays perfectly intact even on mobile screens.
>always set a fixed height for the wrapper element to avoid layout shifts.
**it works best if u also use overflow: hidden

3df2d No.1800

File: 1780970770060.jpg (107.79 KB, 1880x1253, img_1780970754842_wly367ai.jpg)ImgOps Exif Google Yandex

just make sure to use aspect-ratio: 1 / 1; on the container too so u don't gotta manually calculate pixel heights for every breakpoint.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">