Put a maximum width on a fluid video -


i using method make video fluid

https://css-tricks.com/netmag/fluidwidthvideo/article-fluidwidthvideo.php

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

when try add maximum width maxwidth: 400px; getting black padding on top , button of video, how can avoid ?

my question how can set maximum width without getting black padding ?

set width 100% mentioned in article, , change height based on ratio of video you've embedded , width of window. in article (third section)... (or question else, in case sorry misunderstanding)


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -