Jump to content

Fit Background Photo on Mobile

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

On 10/3/2021 at 11:27 PM, lalalindzeee3 said:

Site URL: http://www.kidzculture.org

Hello,

I have a background photo of a map on my "About" page that does not fit correctly on the mobile version. Can someone please help me with the correct custom CSS?

Whenever I change the size on the mobile it shrinks the photo on the desktop.

Thank you!

Add to Design > Custom CSS > Then save & reload the site

@media screen and (max-width:767px) {
[data-section-id="6140ec332173197ab0a53566"] {
    min-height: unset !important;
    height: 35vh !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

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.