Jump to content

Shift Banner Image Up in Mobile View

Recommended Posts

Hi! Tricky problem! You're running into a common problem where your background image which covers the background by either fitting the width 100% and cropping the top and bottom (as on desktop), or filling the height 100% and cropping the left and right (as on mobile). This means that on mobile the image will only adjust where there is cropping, i.e. left and right, you won't be able to move the background image up and down. You could use a little CSS code to adjust the text position on mobile, this for example should help if you add to your Custom CSS:

@media only screen and (max-width:640px) {
  #block-yui_3_17_2_1_1413555146600_9259 {
    display:none;
  }
  #block-yui_3_17_2_1_1589535590443_11113 {
    padding-bottom:160px;
  }
}

This is a bit of a hacky fix, as it hides one spacer block and increase the size of another, but background images are tricky and by definition are underneath and unconnected to the content on top.

Using the most recent version of Squarespace, 7.1 on Fluid Engine really helps with situations like this as you can adjust the layout on mobile separately from the desktop version.

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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.