Jump to content

Add solid color around blog post text.

Recommended Posts

Site URL: https://amphibian-dinosaur-zetw.squarespace.com/blog/my-computer-told-me-to-1

I want to add color around blog post text. I used the following code snippet to add a background to the blog page but now each blog post has the background and it's hard to read. Can I just add a solid color for the text in each blog post?

Code for background:
 

/* Site background image */
body[class*="blog"] {
.section-background, .page-section {
    background: transparent !important;
}
& {
   background-image: url(https://images.squarespace-cdn.com/content/v1/61fd4cc8b69fe0119b1d7cc9/0ab5e1ff-35a3-4055-8b44-721c923bdd72/dark-wallpaper-2007281320582.jpg);
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center center;
   background-color: transparent !important;
}}

 

 

 

Edited by overlordduck
Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.