Guest Posted April 27, 2020 Share Posted April 27, 2020 (edited) Site URL: https://kristelandnic.com/ PW: 94591 I am attempting to remove the background images on mobile only for the "Hero" & "The Wedding Party" sections. Right now it just looks like a accidental line through the section. I attempted multiple CSS modifications to no avail. Any help would be much appreciated. Edited April 27, 2020 by narnado Link to comment
Solution ChrisBartow Posted April 27, 2020 Solution Share Posted April 27, 2020 This should remove it in The Wedding Party section, but may need to add back the color. I don't see the Hero section though. You should be able to do the same thing for that if you find the data-section-id. @media (max-width: 768px) { section[data-section-id="5ea5df28b7d80f496463e8db"] .section-background img, { display:none; } } stapers and GraeMedia 2 Creating websites using Squarespace at Design by Donuts 🍩 Link to comment
kasandramurray Posted February 27, 2021 Share Posted February 27, 2021 I was having issues with the above code. The comma after the img property causing the code not function properly. Once I removed that comma it worked for me. Here is my updated code: @media (max-width: 768px) { section[data-section-id="5ea5df28b7d80f496463e8db"] .section-background img { display:none; } } GraeMedia 1 Link to comment
GraeMedia Posted May 4, 2021 Share Posted May 4, 2021 On 2/26/2021 at 11:12 PM, kasandramurray said: I was having issues with the above code. The comma after the img property causing the code not function properly. Once I removed that comma it worked for me. Here is my updated code: @media (max-width: 768px) { section[data-section-id="5ea5df28b7d80f496463e8db"] .section-background img { display:none; } } Thank you both, this was a huge help! Link to comment
Iwan Posted May 2, 2022 Share Posted May 2, 2022 Hi there! On my landing page I am trying to remove a section background image with the above code but it isn't working? Please help! I just want a white background... https://jeanine-thompson.squarespace.com/ password tuansqsp Link to comment
tuanphan Posted May 5, 2022 Share Posted May 5, 2022 On 5/2/2022 at 2:28 PM, Iwan said: Hi there! On my landing page I am trying to remove a section background image with the above code but it isn't working? Please help! I just want a white background... https://jeanine-thompson.squarespace.com/ password tuansqsp It looks like you hided it? 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment