I'm trying to reproduce this html result:
An image of a monitor, and a video on it ...
At the moment i've found a solution based on an iFrame and youtube url, but i want to reproduce a video hosted on my space, using html5 video tag.
Iframe solution is:
CSS:
/* Background monitor Apple */
div.desktop-wrapper {
position: relative;
padding-top: 25px;
padding-bottom: 67.5%;
height: 0;
}
div.desktop-wrapper iframe {
box-sizing: border-box;
background: url(http://img01.deviantart.net/05b6/i/2011/030/8/5/apple_led_cinema_screen_by_fisshy94-d38e3o5.png) center center no-repeat;
background-size: contain;
padding: 3.4% 10.8% 18.6%;/* 11.9% 15.5% 14.8% */
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
and html:
<iframe frameborder="0" scrolling="no" marginheight="0" marginwidth="0"width="600" height="339" type="text/html" src="/videos/Paris-01.mp4"><div><small></small></div></iframe>
How can I do without iframe ?
Thanks