Title: video width changing
Last modified: March 9, 2017

---

# video width changing

 *  [greencrest](https://wordpress.org/support/users/greencrest/)
 * (@greencrest)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/video-width-changing/)
 * I’m building a site that has videos imbedded on a page within WordPress. I’m 
   having a weird thing happening and can’t resolve it — I think the problem is 
   within WP but not positive. The video wrapper has the following style within 
   it:
 * style=”width: 50%; height: auto; margin:0 auto;”
 * and the object has: display: block; height: 310px; position: relative; width:
   419px;
 * the problem I’m running into is that in the browser (Firefox and Chrome), the
   height and width parameters are being overwritten to match the containing frame
   width, which is 1500px. Its not in the code but its showing up that way in the
   browser code.
 * I copied the code and dropped it on the template page within #content but outside
   the loop — and that did the same thing but the first video in the loop constrained(
   the rest didn’t).
 * Here’s the page: [http://50f.d99.myftpupload.com/news-resources/seminars/](http://50f.d99.myftpupload.com/news-resources/seminars/)
 * Does anyone have any idea what’s going on? Is this something within the WP codex
   or something else? I’m at a complete loss.

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/video-width-changing/#post-8889841)
 * It’s apparently some javascript process that runs as part of the embedding process.
   Have you tried placing the video embed within a constrained container? If a simple
   div doesn’t work, maybe try putting the video on it’s own page, then referencing
   it inside a constrained iframe.

Viewing 1 replies (of 1 total)

The topic ‘video width changing’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/video-width-changing/#post-8889841)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
