Video Youtube Responsive [Réglé]
Sam27 Membre non connecté
Booster Fuzil
- Booster Fuzil
- Voir le profil du membre Sam27
- Inscrit le : 17/01/2018
- Site internet
I would like to insert in the articles this code:
[align=center]<div style="width:98%;margin:auto">
<div style="
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;">
<object style="
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;"
data="https://www.youtube-nocookie.com/embed/PG6BgV5R8aA">
</object>
</div>
</div>
to make Youtube videos responsive to various screen resolutions.
Use PHPBoost 5.1.2 Theme BaseV4.1
I'm waiting....
Thank you.
Édité par Sam27 Le 29/03/2018 à 10h49
babsolune Membre non connecté
Administrateur
- Administrateur
- Voir le profil du membre babsolune
- Inscrit le : 16/05/2008
- Site internet
- Groupes :
you just need to use the html tag
Code TPL :
[align=center] [html] <div style="width:98%;margin:auto"> <div style=" position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;"> <object style=" position: absolute; top: 0; left: 0; width: 100%; height: 100%;" data="https://www.youtube-nocookie.com/embed/PG6BgV5R8aA"> </object> </div> </div> [/html] [/align]
Édité par babsolune Le 29/03/2018 à 14h08
Sam27 Membre non connecté
Booster Fuzil
- Booster Fuzil
- Voir le profil du membre Sam27
- Inscrit le : 17/01/2018
- Site internet
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie