Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How do I replace background video with fallback image on mobile?


lucyrose

Question

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Use this code.... you are going to need a url for the image though. I just upload it to a company google drive.

Mobile Breakpoints

/* CSS FOR TABLET AND MOBILE */
@mobile:  ~"only screen and (max-width: 640px)";
@tablet:  ~"only screen and (min-width: 641px) and (max-width: 949px)";

/* CSS FOR TABLET */
@media @tablet {
/* Insert Code for Tablet Below This Line*/

/* Insert Code for Tablet Above This Line */
}

/* CSS FOR MOBILE */
@media @mobile {
/* Insert Code for Mobile Below This Line*/

/* Insert Code for Mobile Above This Line */
}

Mobile CSS

#PAGEURL img {
  display: none;
}

#PAGEURL .sqs-block-image img {
  display: block;
}

#PAGEURL {
  background: url('IMAGEURL');
  background-repeat: no-repeat;
  background-size: 100%;
}
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...