Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/28/d561488865/htdocs/bejisanweb-wp2015/wp-includes/post-template.php on line 284

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/28/d561488865/htdocs/bejisanweb-wp2015/wp-includes/post-template.php on line 284

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/28/d561488865/htdocs/bejisanweb-wp2015/wp-includes/post-template.php on line 284

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/28/d561488865/htdocs/bejisanweb-wp2015/wp-includes/post-template.php on line 284

CSS – Largeur des vidéos Youtube ou Viméo fluide – Fluid Width Videos for Youtube or Vimeo

<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>

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

Author: bejisan

Share This Post On