Quick snippet how to make a youtube embed video responsive by CSS only.
The easiest way, using viewport units (IE9+)
iframe { width: 100vw; height: 56.25vw; /* 100/56.25 = 560/315 = 1.778 */ background:red; }
CSS2 style fix using a CSS trick and wrapper with class .aspect-ratio:
.aspect-ratio { position: relative; width: 100%; height: 0; padding-bottom: 56%; /* The height of the item will now be 56% of the width. */ } /* Adjust the iframe so it's rendered in the outer-width and outer-height of it's parent */ .aspect-ratio iframe { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }
Check here: https://jsfiddle.net/fhde7ddd
×
Comments
Cialis Compresse 20 Mg
Losec 20mg Tablets Online Walmart
Buy Avanafil Online
us cialis soft
Candian Pharmcy
How Many Days To Take Amoxicillin
Comment Utiliser Le Kamagra
Kamagra Aus China
citrato de sildenafil
Achat Kamagra Super Active 25 Mg
Cialis Generico Mg
Acheter Viagra Geneve
Viagra Comparateur De Prix
Cialis And Ecuador Pharmacy
banned comercials cialis
Zithromax And Sun Exposure
Canadian Pharmacy Lexapro No Rx Needed
Viagra Barata
acheter cialis 10 mg france
acheter cialis 10 mg france
Venta Cialis Por Internet
Can I Purchase Provera Wakefield
Viagra 50 O 100
Viagra Cialis Douleurs
Cialis Per Quanto Tempo
Blue Force Pills
Allevamento Levitra
Propecia With Testosterone
Viagra Alcool Danger
Treatment For Gonorrhea Amoxicillin
Propecia Completo
Cialis Pharmacy Online
Cialis 20 Mg Comprime Pellicule Boite De 4
Levitra De 20 Mg
Cialis Marseille
Will Keflex Work On Vaginal Infections
Will Keflex Work On Vaginal Infections