Change the Background Color of a Text Block

What does this code do?

In Squarespace 7.1, you can set a background color of a text block. This code snippet will allow you to change the background color of a specific block.

 

Code Snippets

Copy and paste the appropriate code into Design > Custom CSS

#BLOCKID {
  background-color: rgba(0,0,0,0.5);
}

Then change the background color to a color of your choosing.

 

How To Use It

  1. Copy and paste the code as indicated above.

  2. To learn how to find a collection id, page id, or block id check out our Start Here guide.

Rebecca Grace

Rebecca Grace is a Squarespace CSS Expert and Website Designer.

https://rebeccagracedesigns.com
Previous
Previous

Edit the Slideshow Gallery Arrow

Next
Next

Sticky Split Sections