Steve-K
(Steve)
June 2, 2021, 12:34am
1
How do I make the video extend the full width of the container?
It’s a rich text element, but I have formatted my rich text elements in a separate page that I am referencing with each of the styles that I’m using.
Here is my site Read-Only: Webflow - Communicate Jesus
Try adding an HTML Embed to the page with the below code.
<style>
.w-richtext{max-width:100%;}
.w-richtext-figure-type-video{padding-bottom:60%!important;}
</style>
Steve-K
(Steve)
June 2, 2021, 6:49am
3
Thanks - however this squished the video even further:
Does this work for you?
<style>
.w-richtext{max-width:100%;width:100%!important}
.w-richtext figure {max-width:100%;width:100%!important}
.w-richtext-figure-type-video{padding-bottom:60%!important;width:100%!important}
</style>
Stan
(justAnotherDeveloper)
June 4, 2021, 8:22pm
5
hi @Steve-K you can set full width directly in RTE
Steve-K
(Steve)
June 7, 2021, 11:20am
6
Thanks - I did that but it still doesn’t seem to be working.
1 Like
You need to style the element. Unbind the rich text field from the CMS field, then add a video element to the rich text field directly. Style this video like you want, then rebind the rich text field to the CMS field again. Your styling will now be added to all videos you add.
See also: Rich text element overview | Webflow University
Stan
(justAnotherDeveloper)
June 7, 2021, 12:45pm
8
Hi @Steve-K I have just a few notes