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

/resp/ - Responsive Design

Mobile-first approaches & cross-device solutions
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1795479351232.jpg (199.65 KB, 1024x1024, img_1795479343393_nt2lylnc.jpg)ImgOps Exif Google Yandex

9bdc5 No.2434

those booking.com affiliate embeds are such a pain with that fixed pixel width causing horizontal scroll on mobile. you've gotta manually set data-width="100%" and avoid using 100% for the height or the whole script just breaks. i'm still not sure if those Affiliate Partner widgets actually play nice with container queries once they're nested in a flexbox.

found this here: https://www.webflow.com/blog/embed-booking-com-widget-webflow

9bdc5 No.2451

File: 1795811959226.jpg (240.22 KB, 1000x1000, img_1795811943731_d19rwtvd.jpg)ImgOps Exif Google Yandex

>>2434
the script handles height fine if you just use calc(100vh - 80px) or something instead of a raw percentage value

9bdc5 No.2454

>>2434
I ran into this on a hotel landing page last month and the container queries were a total nightmare once the iframe loaded. I ended up wrapping the whole thing in a div with overflow: hidden; just to stop that sideways wiggle on mobile.

9bdc5 No.2458

>>2454 overflow: hidden; works for a quick fix but it'll clip the dropdown menus if the widget has any. i usually just throw an aspect-ratio on the parent div to keep the space reserved before the script even fires. helps stop that layout jump when the iframe finally populates.



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