Jump to content

Video Background not filling whole screen

Recommended Posts

Posted

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!

  • Replies 6
  • Views 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 2 weeks later...

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.