I am doing a page where I show thumbnails for videos that, when you click, it popups a YouTube video.
This thumbnails are simple images of 195×195 but the end client it will upload as it, and I would like to add via CSS a “play icon” over the image of the video (compatible with IE7+). I’ve no idea on how to handle this.
Can anyone help me?
Thank you in advance!
you might want to do something like this:
of course do not use
style="", but put styles into separate CSS files.Explanation:
put two images into div. If you give
position: relative;property to your wrapper div, then anything inside this div would be position relatively to it. It means, you can addposition: absolute;to the play image and usingleft: XXpx;andtop: XXpx;you can position it where you want. You might want to usez-indexto define which picture should be on the top. The higherz-indexthe higher layer. Please note:z-indexworks only ifpositionis set.