Skip

Is there a way to 'frame' a YouTube video with an image?
February 3, 2009 6:42 PM   Subscribe

Can I embed a YouTube video OVER/IN an image?

I'm trying to set up a splash page where an image appears with a YouTube video over or within the image. Not next to it, not beneath it, but within the image borders.

This is the most similar site I have found in terms of the desired effect that I want. Subtract the menu options and the Flash and that's exactly what I want.

Thanks!
posted by bigcheesegump to Computers & Internet (3 answers total)
 
The easiest way will probably be to use the CSS background-image attribute. Set the image as the background, then position the player where you want it using CSS.
posted by chrisamiller at 6:56 PM on February 3, 2009


I'd probably include the image normally and then position the YouTube video over it using some CSS margins and relative positioning. Here's an example of a post where I put one gif on top of another that way.
posted by dreamyshade at 6:58 PM on February 3, 2009


The easiest way to do that is to use a table. (Horrors!) Set the image to be the background of the table, and set up cells sizes such that the one you put the YT into is where you want it relative to the background image.

Believe it or not, CSS isn't mandatory.
posted by Chocolate Pickle at 7:34 PM on February 3, 2009


« Older Digital SLRs: Canon 10-series ...   |  I would like to find software ... Newer »
This thread is closed to new comments.


Post