Jump to content

Video Background not filling whole screen

Recommended Posts

The home page of my website currently has a video as background. What I did was uploading a video asa a block then applying the following css: 

#block-yui_3_17_2_1_1689789220776_5025{
    position: fixed;
    width: 100vw;
    height: 100vh;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    z-index:0;
}

I want to change the object-fit from "contain" to "cover" so that the video always fills the whole screen, but adding the object-fit line into the chunk above did not solve the problem. Is there another class I need to target? Thank you!

Link to comment
  • Replies 6
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Can you share your website URL and this page?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • 2 weeks later...
On 10/23/2023 at 9:52 PM, bendthesquare said:

Sure, here you go. Thanks!

guava-amphibian-hppt.squarespace.com
The password is LindenLeaf

I don't see video background & _5025 block on homepage. Can you check it again?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.