Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • hbic Friend
    #662463

    I need to embed a responsive video into a block and I’m asking for advice on how to do this. Does a block exist that is suitable for embedding a high resolution video that provides for some text above it?

    Are there any examples of this?

    Ninja Lead Moderator
    #662609

    If the video on your site uses with youtube video you can follow the guide below

    + Create a container div around the iframe code and give it a class eg:

    <blockquote><div class=”video-container”><iframe…….></iframe></div></blockquote>

    + Add in the CSS:

    .video-container {
    position:relative;
    padding-bottom:56.25%;
    padding-top:30px;
    height:0;
    overflow:hidden;
    }

    .video-container iframe, .video-container object, .video-container embed {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    }

    with other video you can read the sample from there

    Ninja Lead Moderator
    #745767

    If the video on your site uses with youtube video you can follow the guide below

    + Create a container div around the iframe code and give it a class eg:

    <blockquote><div class=”video-container”><iframe…….></iframe></div></blockquote>

    + Add in the CSS:

    .video-container {
    position:relative;
    padding-bottom:56.25%;
    padding-top:30px;
    height:0;
    overflow:hidden;
    }

    .video-container iframe, .video-container object, .video-container embed {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    }

    with other video you can read the sample from there

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum