How can I make a Vimeo video in a 2-columned row on a Webflow site take the full height of the row without setting a fixed height for the columns?

Published on
September 22, 2023

To make a Vimeo video in a 2-columned row on a Webflow site take the full height of the row without setting a fixed height for the columns, you can follow these steps:

  1. Add a 2-column div block to your Webflow page where you want to display the Vimeo video.
  2. Inside each column, add a Video element from the Webflow elements panel.
  3. In the first column, click on the Video element, and in the settings panel on the right-hand side, select Vimeo as the video source.
  4. Paste the Vimeo video URL into the video URL field.
  5. Next, we need to make the video take up the full height of the row. To do this, we'll use some custom code.
  6. Give the 2-column div block a class name by selecting it and then going to the Styles panel on the right-hand side. Enter a class name in the 'Class' field.
  7. Now, navigate to the Page Settings panel by clicking on the gear icon in the top-left corner of the Webflow designer.
  8. In the Page Settings panel, open the 'Custom Code' tab.
  9. In the 'Head Code' section, add the following CSS code:
<style>  .class-name .w-embed {    position: absolute;    top: 0;    left: 0;    width: 100%;    height: 100vh;  }</style>

Note: Replace .class-name with the actual class name you assigned to the 2-column div block.

  1. Once you've added the CSS code, go back to the designer view.
  2. Select the first Video element in the left column, and go to the Element Settings panel on the right-hand side.
  3. Add the following custom attribute: w-embed
  4. Repeat the previous step for the second Video element in the right column.
  5. Preview your Webflow site, and you will see that the Vimeo video now takes up the full height of the row.

By following these steps, you will be able to make a Vimeo video in a 2-columned row on a Webflow site take the full height of the row without setting a fixed height for the columns.

Additional Questions:

  1. How can I embed a Vimeo video in Webflow?
  2. Can I customize the appearance of a Vimeo video in Webflow?
  3. What other customization options are available for videos in Webflow?