Jump to content

Background color change on Column

Recommended Posts

Hi I'm looking to change the background color within a column (see below for an example) however it doesn't seem that I am able to do that within the confines of the current template. Is there a way to add a custom CSS code to make this work? 

Thanks in advance :) 

The Classes.jpg

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Hi there, apologies - the site is still very much in the beginning draft stages, however this is the section I was hoping to address. 

Site information:
https://tangerine-iguana-kwg3.squarespace.com/
Password: MaintainS134!

Current state - doesn't have an option for alternating background color block options. 

The first instance is in the [Home] section of the site, while the other is in the [Shop] section of the site. 

Thanks a lot! 

s.

Screen Shot 2020-10-27 at 9.44.45 AM.png

Screen Shot 2020-10-27 at 9.38.27 AM.png

Screen Shot 2020-10-27 at 9.48.07 AM.png

Screen Shot 2020-10-27 at 9.47.28 AM.png

Link to comment

Add to Home > Design > Custom CSS

div#block-b88c1a14c4b2bb781c7e + .row>.span-4:nth-child(2) {
    background: orange;
}
div#page-section-5f92d38b6b423f1cda189894 .span-12>.row>.span-4:nth-child(2) {
    background: red;
}

 

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

Hi Tuanphan,

Thank you so much for providing the above! I tried the code however it looks like a portion of the column is changed in color and not the full height, any chance you could would advise me on what I could do to make sure the full height of the column is changed in color? 

Thanks a lot, appreciate all the help on this!

S.

Link to comment
On 10/29/2020 at 10:34 PM, Sera said:

Hi Tuanphan,

Thank you so much for providing the above! I tried the code however it looks like a portion of the column is changed in color and not the full height, any chance you could would advise me on what I could do to make sure the full height of the column is changed in color? 

Thanks a lot, appreciate all the help on this!

S.

Try this

div#page-section-5f92d38b6b423f1cda189894 .span-12>.row>.span-4:nth-child(2) {
    background: red;
}
[data-section-id="5f92d38b6b423f1cda189894"] .content-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
[data-section-id="5f92d38b6b423f1cda189894"] .content-wrapper .span-4 {
    padding-top: 20px;
    padding-bottom: 20px;
}

 

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
  • 2 years later...

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.