MacUn Posted October 7, 2021 Share Posted October 7, 2021 Site URL: https://carrot-bronze-bld8.squarespace.com/produce Hello, I'm wondering if there is a way to assign different colors to image collage background colors when there are multiple on a page. I.e. I'd like each of these tan boxes to be a different color as follows: 1st - dk green #496738 2nd - light green #79973D 3rd - light blue #90B0B6 4th - cream #FBF7EB This URL for this screenshot is https://carrot-bronze-bld8.squarespace.com/produce Thank you! tuanphan 1 Link to comment
paul2009 Posted October 7, 2021 Share Posted October 7, 2021 Yes, you can do this with some CSS. If you know how to use CSS to change all of them, you can simply prefix this with the YUI Block ID of the particular image block. For example: #block-yui_3_17_2_1_1620539343869_16876 (and a space) would be added before the CSS selectors that you planned to use, such as .sqs-block-image .design-layout-collage .image-card Does that help, or do you need more specific help? tuanphan and MacUn 2 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
tuanphan Posted October 10, 2021 Share Posted October 10, 2021 @mackenzie Add to Design > Custom CSS /* Collage 1 */ div#block-18f998425215bab189d5 .image-card { background-color: #496738; } /* Colalge 2 */ div#block-yui_3_17_2_1_1620539343869_16876 .image-card { background-color: #79973D; } /* Collage 3 */ div#block-yui_3_17_2_1_1620515148270_59562 .image-card { background-color: #FBF7EB; } Use this tool to find block id in future cases: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en MacUn 1 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