Jump to content

Move background image to the left for mobile

Recommended Posts

Try adding to Design > Custom CSS

/* Resize background image effect */
@media screen and (max-width:767px) {
[data-section-id="61afd9d743b9fe4e280da8f7"] .section-background-content {
    z-index: 999;
    position: relative !important;
}
[data-section-id="61afd9d743b9fe4e280da8f7"] .section-background-canvas {
    visibility: hidden;
}
[data-section-id="61afd9d743b9fe4e280da8f7"] img {
    visibility: visible !important;
    height: auto !important;
}
[data-section-id="61afd9d743b9fe4e280da8f7"] {
    min-height: unset !important;
    height: 30vh !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

Thank you tuanphan! That is so close. Much closer than I got yesterday. I had to adjust the height from 30vh to like 60vh, however, I'm having an issue where it either overlaps or I get a gap where it shows the red color underneath. I can remove the z-index so that the image does not overlap the text when scaling screen size,  but can't figure out a way to fix that red gap. Any ideas?

Screen Shot 2022-03-22 at 9.27.23 AM.png

Screen Shot 2022-03-22 at 9.29.49 AM.png

Link to comment
On 3/23/2022 at 1:07 AM, karleidei said:

Thank you tuanphan! That is so close. Much closer than I got yesterday. I had to adjust the height from 30vh to like 60vh, however, I'm having an issue where it either overlaps or I get a gap where it shows the red color underneath. I can remove the z-index so that the image does not overlap the text when scaling screen size,  but can't figure out a way to fix that red gap. Any ideas?

Screen Shot 2022-03-22 at 9.27.23 AM.png

Screen Shot 2022-03-22 at 9.29.49 AM.png

Hi. No red here. Did you solve?

If no, which device/browser do you use?

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

Thank you tuanphan! I am using Chrome. I spent some time this morning adjusting things and was able to cover up the red, just had to get creative and add parameters for tablet in addition to mobile and I think it is good to go now. I really appreciate your help!

Edited by karleidei
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.