allowfullscreen

an HTML attribute for the iframe tag
  1. Welcome
  2. iframe
  3. YouTube
  4. Examples
  5. Errors
  6. Anecdotes
  7. Questions (11)

Not full screen

Posted by Mimi on 2016-08-04 14:30:25

I have limited space and only want the video to show about 200px X 100 px. How do I change your code to make the video appear smaller.

Answers

Posted by Leo on 2016-08-12 23:06:11

You can use either CSS or HTML. CSS would be the preferred way:

<code>
<iframe style="width: 200px; height: 100px;" src="http://www.youtube.com/embed/xDMP3i36naA" frameborder="0" allowfullscreen></iframe>
</code>

Or the HTML way:

<iframe width="200" height="100" src="http://www.youtube.com/embed/xDMP3i36naA" frameborder="0" allowfullscreen></iframe>

Hope that helps!

Answer this Question

Name:
Answer:

Back to All Questions