• Hi there, I want to have my video in the full width of the container it sits in. Can you tell me how to do that? Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author team-ok

    (@team-ok)

    You can either set the width attribute of the shortcode to something really big, like 3000. Because there’s a default max-width of 100%, the video will fill its container, but not exceed it.

    Or you can do it with CSS:

    .wp-video {
        width: 100% !important;
    }

    If you don’t want all videos to be stretched, wrap your shortcode in a div with a certain class and apply your CSS only to videos in these wrappers:
    <div class="full-width-video">[video]</div>

    .full-width-video .wp-video {
        width: 100% !important;
    }
    Thread Starter Manege

    (@manege)

    CSS works great, thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Video in Full Container Width?’ is closed to new replies.