Tagged: background video, fullsize
Hello
I’m using a video background in a color section. There is a testimonial block in the color section.
My problem is just with smaller resolutions, then the testimonial block takes more height, and the video don’t cover anymore the color section. I can see the color background at top and bottom of the video background, not nice.
Is there a way to have this video background like in css : “position-size:contain” to cover all the color section ?
Thanx !
Hi romano2,
Could you post a link to the site in question so that we can take a closer look please?
Regards,
Rikard
Yes here it is :
Hi,
you can control video’s height with this code inside Quick CSS field:
@media only screen and (max-width: 989px) and (min-width: 768px) {
video#player_2_672007530_1014330572 {
height: 400px !important;
}}
Adjust it as needed for different screen sizes (by changing media queries).
Best regards,
Andy
Thanx.
But height don’t affect the video size, and the video’s id changes every load of the page…
So on the base of your help, I found how to :
@media only screen and (max-width: 989px) and (min-width: 500px) {
#my_id video.avia_video {
width: 350% !important;
left: -120% !important;
}
}
Now it’s working good enough. Thanx !