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

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.


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

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

<iframe style="width: 200px; height: 100px;" src="" frameborder="0" allowfullscreen></iframe>

Or the HTML way:

<iframe width="200" height="100" src="" frameborder="0" allowfullscreen></iframe>

Hope that helps!

Answer this Question


Back to All Questions