Jump to content

Adding background image to a specific section

Recommended Posts

Hi there,

I am trying to add a background image as a faded image on a home page, but only to a specific section - not the whole homepage.

 

This is the site https://emailogic.squarespace.com/

I just need the first section below the header images to have the background image as a faded image and down to just the next banner image.

Is there code that can be used to do this for any block I choose as this would be a great way to add some added visual depth to the website? I remember seeing a post on how to add colour to any block section, but I really need to be able to add an image instead?

 

Many thanks in advance :0)

Link to comment
  • Replies 7
  • Created
  • Last Reply
On 12/17/2019 at 2:53 AM, jasonconway said:

How would I use a background image that spanned all of the white space as an alternative for me to try out?

Add to Home > Design > Custom CSS

/* Set fullwidth background */
#emailogic-no-slideshow .index-section-wrapper {
    background-image: url(https://beaverhero.com/wp-content/uploads/2019/06/trees-3464777_640-min.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}
/* Reset padding for all elements */
#emailogic-no-slideshow .index-section-wrapper .content-inner {
    max-width: 1020px;
    padding-left: 32px;
    padding-right: 32px;
    margin: 0 auto;
}

 

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

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.