Help! - Place a video over a static image (iPad)
PermalinkAnother note: The video needs to stay stationary to the image behind.
Where do I place the code provided by you?
- Add within Concrete 5 edit mode using an HTML block
- Use Dreamweaver to add into source code
- or other way
Thank you for your assistance.
I believe it could be added with an HTML block if you had the path of the image and video (which can be the path found in the file manager or based on your site root).
Is this something that will be on your site for a short period or a long period?
To use the example I have above in the HTML block. It would look like this.
<style> .ipad { position: relative; height: 600px; background: url('http://northwestpassageapp.com/wp-content/themes/relish_theme/img/ipad_border.png') no-repeat; } .overlay { position: absolute; width: 548px; top: 67px; left: 121px; } </style> <div class="ipad"> <video class="overlay" controls>
Here is example HTML and CSS to do what you are asking for. Your video will need an aspect ratio of 4:3 to match the iPad display aspect ratio of 4:3.
http://codepen.io/anon/pen/bNBeeJ...