Title: iframe width not working
Last modified: January 15, 2019

---

# iframe width not working

 *  Resolved [yanana](https://wordpress.org/support/users/yanana/)
 * (@yanana)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/iframe-width-not-working/)
 * Hello,
 * I’m trying to embed a video hosted by Panopto. I used the following short code.
   Although the actual video’s width is resized to 36opx, I have these “black padding”
   on left/right side of the embedded video. Please advise how can I remove them?
 * [iframe src=”[https://lincoln.ap.panopto.com/Panopto/Pages/Embed.aspx?id=ca9efcb5-5af6-45b4-913b-a9b9002ac171&v=1&#8243](https://lincoln.ap.panopto.com/Panopto/Pages/Embed.aspx?id=ca9efcb5-5af6-45b4-913b-a9b9002ac171&v=1&#8243);
   width=360px height=300px style=”margin-left:auto; margin-right:auto; display:
   block;”]
 * I have created a test page and it is published at [https://ltl.lincoln.ac.nz/panopto-video/](https://ltl.lincoln.ac.nz/panopto-video/)
 * Regards,
    Yanan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fiframe-width-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/iframe-width-not-working/#post-11089670)
 * Hi [@yanana](https://wordpress.org/support/users/yanana/)
 * Actually the width is working properly.
    But you have some other javascript listener
   which is setting the width dynamically and that is overriding the width you setup
   via iframe shortcode.
 * It is hard to tell which javascript is doing that. That might be other plugin
   or theme file.
 *  Thread Starter [yanana](https://wordpress.org/support/users/yanana/)
 * (@yanana)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/iframe-width-not-working/#post-11093354)
 * Thanks for your quick reply. I looked it into a bit and I think you are right.
   I have modified a css rule and it seems to have made a difference.
 * Thanks again.
 * Yanana

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘iframe width not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/iframe_99a44b.svg)
 * [iframe](https://wordpress.org/plugins/iframe/)
 * [Support Threads](https://wordpress.org/support/plugin/iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iframe/reviews/)

## Tags

 * [embed video](https://wordpress.org/support/topic-tag/embed-video/)
 * [resize video](https://wordpress.org/support/topic-tag/resize-video/)
 * [video width](https://wordpress.org/support/topic-tag/video-width/)

 * 2 replies
 * 2 participants
 * Last reply from: [yanana](https://wordpress.org/support/users/yanana/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/iframe-width-not-working/#post-11093354)
 * Status: resolved