VicAllenMusic Posted October 23, 2022 Share Posted October 23, 2022 Hi! I have a banner image that works perfectly in Desktop view but in mobile the crop doesn't look right as my face is covered by text. If can't shift the desktop view up as my face will be cut off! Is there any way to shift the positioning up in mobile view only (and maybe tablet too?) Link to comment
Ziggy Posted October 24, 2022 Share Posted October 24, 2022 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. tuanphan 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment