Skip to main content

πŸ“Œ 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. πŸš€

Gerard Godin

Thanks for sharing

D@vid

Thx !

You are welcome πŸ™πŸ»