Embedded youtube video defaults to full screen width
-
When I put youtube embed code on my page the video displays at full page width no matter what size is specified. I’ve tried using both of the following code format with different sizes and it’s always full width.
<p><iframe src=”https://www.youtube.com/embed/xvF9pWMM-28″ width=”560″ height=”315″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe></p>
<p>[embed width="250" height="250"]https://www.youtube.com/embed/xvF9pWMM-28[/embed]</p>
I notice on the page source code the following line which seems to override my specified size & default the video to display at full screen width:
<p><iframe width=”1505″ height=”847″ src=”https://www.youtube.com/embed/xvF9pWMM-28?feature=oembed” frameborder=”0″ allow=”autoplay; encrypted-media” allowfullscreen></iframe></p>
Any ideas how to fix this ?
https://www.bestdealsfind.com/test/
The page I need help with: [log in to see the link]
- The topic ‘Embedded youtube video defaults to full screen width’ is closed to new replies.