Answer the question
In order to leave comments, you need to log in
How to make youtube videos responsive?
How to make the adaptability of videos inserted on the site from youtube?
Tried
.video {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
}
.video iframe,
.video object,
.video embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
<div class="video"><iframe src="..." width="700" height="450" frameborder="0"></iframe></div>
Answer the question
In order to leave comments, you need to log in
<div class="video"><iframe src="..." width="100%" height="100%" frameborder="0"></iframe></div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question