I am using this code to size and position an animation in my document and it is working fine on the first page.
CSS:
.video1 {
width: 895px;
height: 504px;
position: absolute;
left: 67px;
top: 30px;
}
HTML:
<video class="video1 play-on-shown pause-on-hide"
src="http://artpocalypse.com/wp-content/uploads/2021/02/LEATHER_BW.mov"></video>
I need to put a different video of the same size in the same position on multiple pages. I thought I could just add video2/3/4 and change the sources. Only the example on the first page works.
I am not a coder, could someone please advise a solution? What am I doing wrong?
Thanks.
use
Page 1: CSS: .position-1 { width: 895px; height: 504px; position: absolute; left: 67px; top: 30px; } .position-2 { width: 200px; height: 200px; position: absolute; left: 100px; top: 100px; } Any other page: HTML: <video class="position-1 play-on-shown pause-on-hide" src="http://example.com/video.mp4"></video> or <video class="position-2 play-on-shown pause-on-hide" src="http://example.com/video.mp4"></video>This worked perfectly! thanks so much for your help.
2 videos on same page?
2 videos on the same page:
css: .vid { position: absolute; } html: <div class="vid youtube play-on-shown pause-on-hide" data-id="fQOuO6w9CR0" style="width: 400px;height: 300px;top: 100px;left: 100px;"></div> <div class="vid youtube play-on-shown pause-on-hide" data-id="COueCeQpeB4" style="width: 400px;height: 300px;top: 500px;left: 100px;"></div>