Jump to content

Change background colour in Custom CSS

Recommended Posts

Posted

Im using the code below to change the background colour of a section:

body#collection-599074ed46c3c4a29c06c02a{ background: #000000;}

It's not working. Please help.

  • Replies 3
  • Views 9.7k
  • Created
  • Last Reply
Posted

Hey, we would need a link to your site to be able to troubleshoot this.However, the code you are using would be for the entire collection.You would probably be looking for the Page ID instead


#page-58876b2cbf629adf6254c7d5{  background-color: #000 }

Alternatively, you could add the code to the Code Injection of the specific page section to only affect that page

Posted

Hi, Thanks for the reply. This is our website:

http://www.edge-gaming.com/

The pages are split into sections and it's actually the section backgrounds we want to change rather than the whole page itself. Would really appreciate some more guidance. Thanks.

  • 2 weeks later...
Posted

Ok, I've worked this out for myself.

It's very simple. In Custom CSS you just need to refer to the name of the section as your #. See below:


#offerings
{background-color:  #355666;}

Hopes this helps others. Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.