Force Scale YouTube Object Width

Discussion in 'Graphics & Multimedia' started by slinky, Mar 31, 2008.

  1. #1
    I was wondering if anyone knows of a way, css or otherwise, to override the YouTube object width that is set within an embed code. So let's say for example a user inserts an embed code into a space on my site that says:

    <object width="425" height="355"><param name="movie" ....
    Code (markup):
    I want to force the video to fit to another width and height, e.g.

    <div style="width:200px; height:140px">

    but unfortunately that doesn't work. The reason I want to do this is because I have a space for media that doesn't accommodate a full size YouTube video preview and I'm guessing that 50% of the users won't understand how to scale videos properly before pasting them in (or will be too lazy.)

    Much appreciate to anyone who can figure this out...
     
    slinky, Mar 31, 2008 IP