Jump to content

Adding a background color to blocks and sections of website

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://blockpaperprint.com

Hello everyone!
How can I change the background color for specific parts of my website and blocks? 
For example, on my homepage, I'm listing packages, which I'd like to highlight with blue and black backgrounds. In the case study section, I'd like to have a grey background. 
Your input would be of great value and appreciation! 
I've attached an image mockup for reference, in addition to my website,. 

Thanks again!


Website Mockup Sketch.jpg

Link to comment
  • Solution

You need to use CSS to do this

With above box in screenshot, Add to Home > Design > Custom CSS

div#block-yui_3_17_2_1_1580839942134_161965 {
    background: grey;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
div#block-yui_3_17_2_1_1580839942134_161965 h2 {
    background: blue;
    text-align: center;


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.