• 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/

    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

    (@bcworkz)

    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.