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

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

Top Posters In This Topic

Add to Home > Design > Custom CSS

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

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

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.