Jump to content

Image overlay on slide show cropped on mobile

Recommended Posts

Site URL: https://www.hortus.com.au/about-5

Hello 

When in mobile the logo which has been overlayed using the below css is cropped. How do I get it so you can see the whole logo on mobile devices.

 

Password: hortus

Thanks

 

Current css:

[data-section-id="62b2b5e018398148f72b3fa9"]:after {
    content: " ";
    position: absolute;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: url(https://static1.squarespace.com/static/604008e3f6c0190bbe9903bd/t/62b3f315b15ed050327cec58/1655960341821/Picture1.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
 

Edited by hannahd
Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Add to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="62b2b5e018398148f72b3fa9"]:after {
    background-size: contain !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

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.