π How to Embed 16:9 and 1:1 Videos: Bunny + YouTube Shorts
Hi Fluent Community π,
after two weeks of testing and tweaking, we finally figured out how to embed videos from Bunny.net and YouTube Shorts so they display perfectly in the right aspect ratio. We want to share this with you all so nobody else has to struggle with it! π
πΉ 1. Bunny.net Embed
π Just change the padding-top value depending on the aspect ratio:
- 16:9 β 56.25%
- 1:1 β 100%
16:9 (horizontal)
\
Β \<iframe src="https://iframe.mediadelivery.net/embed/ACC/VIDEO_ID?responsive=true"
Β Β loading="lazy"
Β Β style="border:0;position:absolute;top:0;left:0;width:100%;height:100%;"
Β Β allowfullscreen>
Β \
\
1:1 (square)
\
Β \<iframe src="https://iframe.mediadelivery.net/embed/ACC/VIDEO_ID?responsive=true"
Β Β loading="lazy"
Β Β style="border:0;position:absolute;top:0;left:0;width:100%;height:100%;"
Β Β allowfullscreen>
Β \
\
πΉ 2. YouTube Shorts (9:16 vertical)
π For Shorts, use a custom HTML embed with padding-top:177.7778%.
π Replace VIDEO_ID with your YouTube Short ID.
\
Β \<iframe
Β Β src="https://www.youtube.com/embed/VIDEO_ID"
Β Β style="position:absolute;inset:0;width:100%;height:100%;border:0;"
Β Β allowfullscreen
Β Β loading="lazy">
Β \
\
β¨ Thatβs it! Copy β Paste β Replace VIDEO_ID. Your videos will look clean, full-width, and in the right aspect ratio without ugly black bars.
We hope this saves you hours of trial and error. π

