Jump to content

Edit History

Martin Mi

Martin Mi

Hello, Ahjdwoor!

 

This is the code you can use to Include the video:

<div class="videoWrapper"> <iframe width="640" height="360" src="https://www.youtube.com/embed/3G1PFLuTrgM" frameborder="0" allowfullscreen></iframe> </div>

And the CSS which I pasted into Customer section in Alysum template but you can also find different ways how to edit main template CSS file:

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: auto  !important;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

 

This should be working well to provide dynamic iFrames that scale well on different displays. 

 

Best Regards,

Martin Mi

E-shop & E-commerce Agency

www.dataquo.eu

Martin Mi

Martin Mi

Hello, Ahjdwoor!

 

This is the code you can use to Include the video:

<div class="videoWrapper"> <iframe width="640" height="360" src="https://www.youtube.com/embed/3G1PFLuTrgM" frameborder="0" allowfullscreen></iframe> </div>

And the CSS which I pasted into Customer section in Alysum template but you can also find different ways how to edit main template CSS file:

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: auto  !important;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

 

This should be working well to provide dynamic iFrames that scale well on different displays. 

 

Best Regards,

Martin Mi

E-shop & E-commerce Agency

www.dataquo.eu

×
×
  • Create New...