Jump to content

Adding background image to blog content box

Go to solution Solved by tuanphan,

Recommended Posts

Hi, i'm trying to add a background image to my blog content block. I've tried many of the codes from other questions including the one below but cannot get an image to populate. I don't want the image to include on my header or footer just the blog block unlike the one below. Can anyone offer assistance?

https://bagpipe-swordfish-5feg.squarespace.com/blog

password: releasekatie

 

Thank you

 

Edited by katierelease
Link to comment
  • Solution
On 12/5/2021 at 11:15 PM, katierelease said:

Hi, i'm trying to add a background image to my blog content block. I've tried many of the codes from other questions including the one below but cannot get an image to populate. I don't want the image to include on my header or footer just the blog block unlike the one below. Can anyone offer assistance?

https://bagpipe-swordfish-5feg.squarespace.com/blog

password: releasekatie

 

Thank you

 

Add to Design > Custom CSS

/* Blog background */
.blog-masonry.collection-content-wrapper {
    background-image: url(https://cdn.pixabay.com/photo/2017/11/19/22/37/seal-2964019__340.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 12/13/2021 at 12:27 PM, katierelease said:

Thank you! One last request for the blog block.

If I wanted to stretch the blog content box to the footer so there wasn't any background showing between the content box and the footer what code would I apply?

It looks like you changed password. Can you check?

https://bagpipe-swordfish-5feg.squarespace.com/blog

password: releasekatie

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.