Webflow sync, pageviews & more.
NEW

How can I make my YouTube video perfectly rounded in Webflow when viewing on a Chrome smartphone (iPhone 12 Pro)?

TL;DR
  • Embed the YouTube video in a Div Block with equal width and height, apply a large border-radius and overflow: hidden for rounding.
  • Use the padding-top technique for responsive aspect ratio and test on an iPhone 12 Pro or Webflow’s mobile preview.

To make your YouTube video perfectly rounded in Webflow on a Chrome browser using an iPhone 12 Pro, you need to use specific styling on the embed element and ensure mobile responsiveness is properly configured.

1. Use an Embed or Video Wrapper

  • Add an Embed element from the Add panel in Webflow.
  • Paste your YouTube video embed URL or iframe code.
  • If you use the default Video element, it may have limitations in styling, so prefer the Embed element for full control.

2. Wrap the Embed in a Div Block

  • Place the Embed element inside a Div Block, which will act as your styled container.
  • Give the Div Block a class, e.g., video-wrapper.

3. Apply Border Radius to the Wrapper

  • Select the video-wrapper class.
  • Set equal Border radius values on all four corners.
  • Example: 50px or 9999px for a circle (use 50% only if it's a square).
  • Ensure the dimensions are equal (width = height) to make it perfectly round.
  • Set Overflow: Hidden on the wrapper to clip overflowing corners.

4. Set Fixed Aspect Ratio Using Padding

  • To keep the video responsive, apply the “padding-top” hack:
  • Set the video-wrapper to position: relative.
  • Inside it, give the Embed div position: absolute, top/left/right/bottom = 0.
  • On the wrapper, set a padding-top of 56.25% for a standard 16:9 aspect ratio.
  • This ensures the iframe scales proportionally while maintaining border radius.

5. Test Responsiveness for iPhone 12 Pro

  • Open Webflow's Designer > Preview mode, and select the iPhone 12 Pro in Device Preview.
  • Alternatively, publish the site and inspect using a real iPhone 12 Pro with Chrome.
  • Webflow’s responsive settings are usually sufficient, but double-check widths and height to ensure the container remains square on mobile.

6. Optimize Embed Parameters

  • In your YouTube iframe URL, add parameters like ?rel=0&modestbranding=1 to customize playback.
  • This doesn't affect rounding but improves UX.

Summary

To make a YouTube video perfectly rounded on Chrome/iPhone 12 Pro, wrap the embed in a Div Block with equal width and height, apply a large border-radius and overflow: hidden, and use the padding-top technique for aspect-ratio responsiveness. Always test on the actual device or Webflow’s mobile preview.

Rate this answer

Other Webflow Questions