Howto: Responsive YouTube videos

Permalink
Ad some css to your used theme style.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%;
}


And use this for embedding the video:

<div class="video-container">
         <iframe src="http://www.youtube.com/embed/dFVxGRekRSg" frameborder="0" width="560" height="315"></iframe>
</div>

CMSDeveloper
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
A How-to is already there in C5 community.

http://www.concrete5.org/documentation/how-tos/designers/responsive...

Rony