Jump to content

Mobile Picture is wrong - but desktop version is okay. How can I fix this?

Recommended Posts

Site URL: https://www.bendameronmusic.com/

How can I change the background picture on the mobile view? I created the website looking at the desktop version. Everything else looks fine. The desktop picture is expanded so when I look at it on my phone I don't get any part of the picture that I need. How can I change just this one element for the mobile site without changing the desktop? In the threads I've read, CSS Media Queries are mentioned, but I don't know what that is. Thanks!

Link to comment
  • Replies 1
  • Views 235
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
/* set height */
[data-section-id="5e703c4f1356f60cd4dda450"] {
    min-height: 40vh !important;
    padding-top: 0 !important;
}
/* set image position */
[data-section-id="5e703c4f1356f60cd4dda450"] .section-background img {
    object-position: 50% 50% !important;
}
}
  • I like music ✌️

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.