<iframe>
in a div with padding-top: 56.25%
for 16:9 scaling.?rel=0&modestbranding=1
) and adjust CSS settings to remove unwanted borders.Your embedded YouTube video has black borders because of aspect ratio mismatches between the video and the container it’s placed in. Webflow maintains aspect ratios automatically, but conflicts can arise due to settings or styling.
<iframe>
, wrap it in a div with custom styling:padding-top: 56.25%
(for 16:9).?rel=0&modestbranding=1
to the embed URL to remove unnecessary branding.frameborder="0"
and checking CSS margins.Black borders occur due to aspect ratio mismatches or YouTube's automatic padding. Ensure your video is 16:9 natively, use Webflow’s Video Element, or adjust CSS for a manual embed to properly fit the container.