mackenzieu 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 mackenzieu 2 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
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 mackenzieu 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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