Jump to content

Use background image of first section for all sections after including Footer

Go to solution Solved by tuanphan,

Recommended Posts

Dear All,

On the website www.beverlyandgregor.com

I used CSS to have the footer always transparent and show the background image of the above section, which worked, wonderfully. Thank you @tuanphan for your help in previous threads! It worked like a charm. The code I used was:

/* Footer transparent */
body {
    position: relative;
}
body footer#footer-sections {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}
body footer.sections section, body footer.sections .section-background, body footer.sections .section-border {
    background: transparent;
}

Now, on the page https://www.beverlyandgregor.com/program, I have the problem, that the background image is interrupted by a second, white section, before the footer. Is there a way to have the background image from section 1 to extend through section 2 and all the way to the footer, @tuanphan?

Thank you so much in advance!

Best, Tonmeister

Link to comment
  • Solution

It will require some extra code

First, You have a blank section at bottom of Program page, you need to delete it

Next, add this code to Custom CSS

section[data-section-id="65462f29c07511238234f86e"] {
& {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    padding-bottom: 200px;
}
&, .section-background, .section-border {
    background-color: transparent !important;
}}
@media screen and (max-width:767px) {
    [data-section-id="65462c39341d672e354b260c"] {
        padding-bottom: 900px;
    }
}

image.png.8e5a6af9b3d953a2da5afe1473007563.png

image.png.b97826eec8e4447a5fcd69f5e98eab76.png

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
  • 2 weeks later...

I'm having a similar problem in the contact page on my website (https://www.josemanuelvelez.com/contact). Instead of an image, I used the same original code to make the footer transparent and show the previous section background. But it shows a weird blank space at the end of the contact page.

It doesn't happen in any of the other pages, and I checked and I don't see any additional/blank section at the end of the contact page.

Any chance you could help me @tuanphan 

(just an amateur web designer here)

Edited by JMVelez
Link to comment
On 11/19/2023 at 8:40 AM, JMVelez said:

I'm having a similar problem in the contact page on my website (https://www.josemanuelvelez.com/contact). Instead of an image, I used the same original code to make the footer transparent and show the previous section background. But it shows a weird blank space at the end of the contact page.

It doesn't happen in any of the other pages, and I checked and I don't see any additional/blank section at the end of the contact page.

Any chance you could help me @tuanphan 

(just an amateur web designer here)

Add this code to Website Tools (under Not Linked) > Custom CSS

body {
    background-color: #121212;
}

 

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
  • 1 month later...

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.