test

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • aog09 Friend
    #896177

    Hi
    I want to add a video from YouTube in an article with 640px width (as picture) but it’s not responsive.
    How can I add it to video changes dimensions authomatic?
    Thank you.

    pavit Moderator
    #896193

    Hi

    Inside your custom.css file add this

    .rwd-video {
        height: 0;
        overflow: hidden;
        padding-bottom: 56.25%;
        padding-top: 30px;
        position: relative;
    }
    .rwd-video iframe,
    .rwd-video object,
    .rwd-video embed {
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

    Then to incorporate iframe use this into the article

    <div class="rwd-video">
    <iframe width="640" height="315" src="https://www.youtube.com/embed/5Yvfa54j4T0" frameborder="0" allowfullscreen></iframe></div>

    Best regards


    1. Screenshot_15-1
Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  pavit 8 years, 9 months ago.

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