Jump to content

Coding to make cover page different for Mobile and Desktop version

Recommended Posts

Site URL: https://www.autocars.ltd/landing-page-mini-2

Hi, i'm creating a cover page and i think it looks good on desktop. however the mobile version has a slight issue because the words are unreadable due to the background image (IMAGERY?)
This is how it looks like now:
Desktop:287487498_Screenshot2020-11-30at12_16_35PM.thumb.png.941046ae8907bab3bac88f34797fa3e4.png
Mobile:
IMG_1245.thumb.PNG.f613156b75f3c0735c1d9dd3ecb418e6.PNG


I would like to know if there is any way to code and make the opacity of the overlay on the mobile version higher, so that I can read the words more clearly? something like this:
IMG_1244.thumb.PNG.9e7c869d7fd158d9887317233c35ccfe.PNG

Currently im adjusting the overlay colour on top of my background image to play with the opacity level of the background image.

1669310092_Screenshot2020-11-30at12_14_54PM.thumb.png.e7522a7c01c078f9e25457c103ca95ae.png

Link to comment
  • JamieC changed the title to Coding to make cover page different for Mobile and Desktop version
  • Replies 3
  • Views 387
  • Created
  • Last Reply

Thanks tuanphan for the solution! When i preview it on squarespace preview (desktop and mobile version), it works nicely. However when I tried viewing on the actual domain on the phone, it didn't work for my case (i think because CSS doesn't work on cover page). Nonetheless thanks for your help, I think I will try to create a new page instead of using a cover page!

Link to comment
20 hours ago, JamieC said:

Thanks tuanphan for the solution! When i preview it on squarespace preview (desktop and mobile version), it works nicely. However when I tried viewing on the actual domain on the phone, it didn't work for my case (i think because CSS doesn't work on cover page). Nonetheless thanks for your help, I think I will try to create a new page instead of using a cover page!

Try adding this to Cover Page Settings > Advanced > Header

<style>
  @media screen and (max-width:640px) {
.scrim {
    background: rgba(0,0,0,0.75) !important;
}
}
</style>

 

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.