LittleEmbers Posted May 26, 2020 Posted May 26, 2020 Site URL: http://www.littleemberslearning.co @tuanphan I am trying to make a two-toned background on a specific page using SquareSpace 7.1. I can't seem to target the right element. It works ok on desktop but not on mobile. It seems like it's not targeting the entire background. Here is the code I'm using: /*Background half color*/ div#page-section-5ebb04baaf3da51700fbbdba{ background: linear-gradient(0deg, #264a53 60%, #fff 40%); } @media only screen and (max-width: 640px){ div#page-section-5ebb04baaf3da51700fbbdba { background: linear-gradient(0deg, #264a53 80%, #fff 20%); } } Any help would be appreciated!
tuanphan Posted May 26, 2020 Posted May 26, 2020 Try target data-section-id, find id with this tool https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff 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!)
LittleEmbers Posted May 27, 2020 Author Posted May 27, 2020 @tuanphan Thanks. I use a similar tool: https://chrome.google.com/webstore/detail/squarespace-collectionblo/bggpdfnccodbnmcndckmeehdjkjojkde Attached is the target data. I still can't quite figure out how to target the specific page background. 😞
tuanphan Posted May 27, 2020 Posted May 27, 2020 The tool I sent works both SS 7.0 & 7.1 Your tool seems work 7.0 only 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!)
tuanphan Posted May 27, 2020 Posted May 27, 2020 Hi, Can you describe in detail your problem? Don't really understand the question. 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!)
LittleEmbers Posted May 27, 2020 Author Posted May 27, 2020 I want the top half of my home page body section to be white. I want the bottom half of the body section to be #264a53. If you look on mobile, it's not targeting the entire body section.
LittleEmbers Posted May 27, 2020 Author Posted May 27, 2020 I figured it out. Squarespace 7.1 doesn't have page identifiers so I had to find the section-id. Thanks @tuanphan for getting me going in the right directions. Here's the code I used: [data-section-id="5ebb04baaf3da51700fbbdba"] .section-background { background: linear-gradient(0deg, #264A53 60%, #FFF 40%); }
tuanphan Posted May 28, 2020 Posted May 28, 2020 On 5/27/2020 at 9:38 AM, LittleEmbers said: I want the top half of my home page body section to be white. I want the bottom half of the body section to be #264a53. If you look on mobile, it's not targeting the entire body section. Hi. Did you solve? 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!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.