Jump to content

Is there any way to change the background color on mobile devices only?

Recommended Posts

Site URL: https://www.maslowproject.com/

Is there any way to change just the mobile background color and not the desktop background color? What is happening is that our background video is not playing when using Firefox mobile and just a white background color is showing up. When I change the background color on desktop from white to another color, it looks awful. I need the background color white on desktop and ideally need to just change the color when using mobile devices. If you've found a solution to this, thanks for taking the time to reply. Best, Frank

Link to comment
  • Replies 2
  • Views 1.3k
  • Created
  • Last Reply
On 5/12/2021 at 3:54 AM, Frank349 said:

Site URL: https://www.maslowproject.com/

Is there any way to change just the mobile background color and not the desktop background color? What is happening is that our background video is not playing when using Firefox mobile and just a white background color is showing up. When I change the background color on desktop from white to another color, it looks awful. I need the background color white on desktop and ideally need to just change the color when using mobile devices. If you've found a solution to this, thanks for taking the time to reply. Best, Frank

Add to Design > Custom CSS

/* Home-Mobile-Video background */
@media screen and (max-width:767px) {
body.homepage article section:first-child .section-background {
    background: red !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!)

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • 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.