Modify parent element with some styles, e. g. Elementor puts some padding into it.
We need to enforce the style via inline-style because some themes use !important
in their
classes, too.
If true
, the reset-style will be forced and vice-versa
Generated using TypeDoc
Example: Vimeo responsive video.
<div style="padding:56.25% 0 0 0;position:relative;"> <iframe style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe> </div>
Example 2: Oxygen responsive video wrapper
<div style="aspect-ratio:16/9"> <iframe></iframe> </div>