Jump to content

Background Video for mobile and desktop

Recommended Posts

Posted

Hey 

I need help with my homepage.

I want looping Background videos for my homepage. But ahhh, I struggle with the size. because when I do it for the mobile version, it looks terrible on desktop.

So I need to hide the video for mobile on the desktop side and need to hide the desktop version for mobile.

I already read some post here. so I need the code. 

and I already double the section and the first video is for desktop and the second for mobile.

Please Help 😃

https://joanabuchfotografie.com 

pw: elite123

 

thank you

Posted

 Add to Website > Website Tools (under Not Linked) > Custom CSS

/* hide top section on phone */
@media screen and (max-width:767px) {
	[data-section-id="65483ae9b4aeb55afbba287e"] {
		display: none !important;
}
}
/* hide bottom on desktop */
@media screen and (min-width:768px) {
	[data-section-id="6548395e69af731e2504ef9a"] {
		display: none !important;
}
}

 

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!)

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.