huxleymann Posted November 14, 2022 Share Posted November 14, 2022 (edited) Hello Squarespace enthusiasts! In desperate need of help! Getting really frustrated with this line of code that all of a sudden isn't working. It's a simple split background colour. Customised for mobile as well. Code below that was working fine and now all of a sudden it isn't... https://www.studiohuxley.co.uk/ Password: hello Would really appreciate any help 🙂 Target section is on the home page. Image attached. //Section split colour background home page services - Start// section[data-section-id="6347fe9e12a5c627d0cbbb5a"] { .section-background { margin-bottom: 22%; position: absolute; } & { background-color: #F6F4F9!important; } } @media only screen and (max-width: 600px) { section[data-section-id="6347fe9e12a5c627d0cbbb5a"] { .section-background { margin-bottom: 220%; position: absolute; } & { background-color: #F6F4F9!important; } } } Edited November 14, 2022 by huxleymann Spelling error Link to comment
Beyondspace Posted November 14, 2022 Share Posted November 14, 2022 51 minutes ago, huxleymann said: Hello Squarespace enthusiasts! In desperate need of help! Getting really frustrated with this line of code that all of a sudden isn't working. It's a simple split background colour. Customised for mobile as well. Code below that was working fine and now all of a sudden it isn't... https://www.studiohuxley.co.uk/ Password: hello Would really appreciate any help 🙂 Target section is on the home page. Image attached. //Section split colour background home page services - Start// section[data-section-id="6347fe9e12a5c627d0cbbb5a"] { .section-background { margin-bottom: 22%; position: absolute; } & { background-color: #F6F4F9!important; } } @media only screen and (max-width: 600px) { section[data-section-id="6347fe9e12a5c627d0cbbb5a"] { .section-background { margin-bottom: 220%; position: absolute; } & { background-color: #F6F4F9!important; } } } Try section[data-section-id="6347fe9e12a5c627d0cbbb5a"].page-section .section-border { background-color: #F6F4F9!important; } @media only screen and (max-width: 600px) { section[data-section-id="6347fe9e12a5c627d0cbbb5a"].page-section .section-border { background-color: #F6F4F9!important; } } huxleymann 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
paul2009 Posted November 14, 2022 Share Posted November 14, 2022 55 minutes ago, huxleymann said: Getting really frustrated with this line of code that all of a sudden isn't working. It's a simple split background colour. Squarespace made a change to sections last week (adding a section-border class) and it appears to have caused some unexpected issues. See this post: huxleymann 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Solution huxleymann Posted November 14, 2022 Author Solution Share Posted November 14, 2022 @paul2009 Thanks Paul! You confirmed my suspicions. It all happened on Friday across my clients sites. So tedious ha This amended code now seems to be working. //Section split colour background home page services - Start// section[data-section-id="6347fe9e12a5c627d0cbbb5a"] .section-background { background-color: #F6F4F9!important; margin-bottom: 25%; } @media only screen and (max-width: 600px){ section[data-section-id="6347fe9e12a5c627d0cbbb5a"] .section-background { background-color: #F6F4F9!important; margin-bottom: 225%; }} //Section split colour background home page services - End// 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