Jump to content

Assign different colors to image collage background colors?

Recommended Posts

Site URL: https://carrot-bronze-bld8.squarespace.com/produce


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!

Screen Shot 2021-10-06 at 10.11.29 PM.png

Link to comment

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?

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

@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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.