To change the height of an embedded Vimeo video in Webflow, you need to either style the embed element directly or use Webflow's built-in video component strategically.
1. Use a Responsive Embed with Custom Height
- Drag in an Embed element from the Add panel (not the Video element).
- Paste your Vimeo iframe embed code into the Embed box.
- Wrap the Embed in a div block, give the div a class name, and style that div.
- In the Style panel, set a fixed or relative height (e.g., 500px or 56.25% for 16:9).
- Set the child Embed element to width: 100% and height: 100% so it fills the parent div.
2. Maintain Aspect Ratio with Padding Trick
- Create a div block and assign it a class (e.g.,
video-wrapper
). - Set the
video-wrapper
position: relative. - Apply padding-top: 56.25% for a 16:9 ratio, or adjust to your desired aspect ratio.
- Set
overflow: hidden
. - Inside it, place an Embed element.
- Set the Embed to position: absolute, top: 0, left: 0, width: 100%, height: 100%.
3. Use Webflow’s Video Component Safely
- If using Webflow’s Video component, you can’t directly set height.
- However, wrap the Video component in a div and set height/width on the wrapper.
- Then go to the Style panel and adjust overflow, fitting, and positioning to make the video scale accordingly.
Summary
To change the height of a Vimeo embed in Webflow, wrap the iframe in a styled div and control dimensions via CSS. Use position: relative
and padding-top
for responsive video, or set a fixed height if you need exact sizing.