Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
jasonconway

Adding background image to a specific section

Question

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)

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 0
On 12/10/2019 at 4:31 PM, tuanphan said:

Difficult. Will think tomorrow.

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

Share this post


Link to post
  • 0
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;
}

 


 Send me a message if you have any questions.

OFF forum from Jan 16 - Jan 31 for Lunar New Year.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...