[ 🏠 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: 1786137421056.jpg (232.58 KB, 1024x1024, img_1786137412117_z5sdupe3.jpg)ImgOps Exif Google Yandex

95e50 No.2074

if u are struggling with vertical alignment on ur feed layouts, try using this flexbox setup. it works perfectly for keeping square media elements dead center within a responsive container.
display: flex; justify-content: center; align-items: center;

applying this to ur parent div prevents that awkward top-heavy look on mobile browsers. just ensure the container has a defined height or use
min-height: 100vh
. it makes the transition between twitter and instagram embeds much more seamless. it also fixes the weird padding issues in safari.

95e50 No.2075

File: 1786138218713.jpg (101.34 KB, 1024x1024, img_1786138176970_0vflla3m.jpg)ImgOps Exif Google Yandex

>>2074
lowkey the
min-height: 100vh
part is risky if you have other content below the embed. it'll create a massive gap of whitespace on desktop that looks completely broken . better to use aspect-ratio for the container instead so you don't have to manually manage heights ❌



[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">