Using Video in Webflow

Responsive Video

Overview
Video Hosting Options
101
Webflow-Native Video Sources
Video Sources & URLs
401
Responsive Video
402
YouTube | How to Embed YouTube Shorts
2:40
403
YouTube | How to Start Playback at a Specific Point
3:18
404
Suppressing YouTube Related Videos
405
Transparent Videos
406
Pause Videos when Hidden
408
Customizing Video Players
408
Other Video Sources
Hosting Video on Google Drive
501
No items found.
Published
July 22, 2023
Updated
July 22, 2023
in lightbox

In this example we're using a YouTube video.

Surround the video iframe in a DIV, here we're assigning the class video-responsive ;

<div class="video-responsive">
    <iframe 
        width="853" 
        height="480" 
        src="https://www.youtube.com/embed/YOUR_VIDEO_ID" 
        frameborder="0" 
        allowfullscreen>
    </iframe>
</div>

Then add this custom CSS;

.video-responsive {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.