Jump to content

Page sections/color to fill page

Recommended Posts

I'm trying to design a landing/home page which has a plain colored background, an image, and a phone number with no Footer. I can add sections of color and insert a photo, but there's always a white area at the bottom of the page. 

What I would really like is one section to fill the page and insert the photo and number. How many blank sections should it take to fill a page?

This seems like such a simple thing to do. I tried using css on the page to just change to background, but that doesn't seem to work.

body {
  background-color:
#E8E67D !important;
}

Am I missing something simple here?

Link to comment
16 hours ago, CooperBlack said:

I'm trying to design a landing/home page which has a plain colored background, an image, and a phone number with no Footer. I can add sections of color and insert a photo, but there's always a white area at the bottom of the page. 

What I would really like is one section to fill the page and insert the photo and number. How many blank sections should it take to fill a page?

This seems like such a simple thing to do. I tried using css on the page to just change to background, but that doesn't seem to work.

body {
  background-color:
#E8E67D !important;
}

Am I missing something simple here?

Hi, please share the link and password if applicable 🙂

Please give this a 👍 if it helps. Make sure to quote me or tag me in your reply, otherwise I won't be notified.

Link to comment

https://raccoon-oarfish-szer.squarespace.com

Pwd: coding-is-no-fun!

On the Process and Contact pages the section grey color doesn't go to the bottom of the page. I tried using:

body {
background-color: #8D8D89 !important;}

On the page CSS areas, but nothing happens.

And also, how can I remove the white area below the Footer on certain pages (all but the Projects page for some reason).

Thanks.

 

 

Screen Shot 330.png

Edited by CooperBlack
Link to comment

It dawned on me the the code for changing the page color might have to be in the main CSS area, not the individual page area.

Which is the case.

So there's no way to change individual page colors? I ask this because I find Sections never go all the way to the bottom of pages (Why?) and if I make all page colors the same, then there would be a band of color difference the bottom where a Section and the page color met.

 

Edited by CooperBlack
Link to comment
On 3/10/2022 at 12:18 AM, CooperBlack said:

https://raccoon-oarfish-szer.squarespace.com

Pwd: coding-is-no-fun!

On the Process and Contact pages the section grey color doesn't go to the bottom of the page. I tried using:

body {
background-color: #8D8D89 !important;}

On the page CSS areas, but nothing happens.

And also, how can I remove the white area below the Footer on certain pages (all but the Projects page for some reason).

Thanks.

 

 

Screen Shot 330.png

Hi,

Password is incorrect

coding-is-no-fun!

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

I changed my design after posting this question. The only thing I discovered about overall page coloring was to add code to the main site are, not individual pages. Which works in a way, but adds the color to the whole site. I would still like to know if there's a way to add background color to individual pages.

Pwd. Largeosity

Link to comment

On a couple of pages with galleries, the content doesn't reach the bottom of the page. Resulting in a white area between that and the footer.

https://raccoon-oarfish-szer.squarespace.com/projects/spiders?p

Pw: Largeosity

I tried making the whole site background the same color as the gallery background, but that doesn't seem to alleviate the white.

body {
  background-color: #DFE0E1 !important;
}

What am I missing?

Screen Shot 339.png

Link to comment
11 hours ago, CooperBlack said:

On a couple of pages with galleries, the content doesn't reach the bottom of the page. Resulting in a white area between that and the footer.

https://raccoon-oarfish-szer.squarespace.com/projects/spiders?p

Pw: Largeosity

I tried making the whole site background the same color as the gallery background, but that doesn't seem to alleviate the white.

body {
  background-color: #DFE0E1 !important;
}

What am I missing?

Screen Shot 339.png

Hi,

It looks fine to me. Which screen size do you see problem?

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
  • 8 months later...

I'm having trouble with this too. Surprisingly there's no built-in option to change the background color on a page-by-page basis, only the whole site. I just want to make certain pages have a solid black (#000000) background behind all the sections, top to bottom (including header and footer). Ideally this is something I could add to the header injection of specific pages, as my site-wide Custom CSS is getting crowded! 

But if that is the case, I know how to grab my site collection/sections codes, I just need the code to plug those into.

Thanks in advance for any help. 

Edited by AndyKhouri
Link to comment
On 11/16/2022 at 3:35 PM, AndyKhouri said:

I'm having trouble with this too. Surprisingly there's no built-in option to change the background color on a page-by-page basis, only the whole site. I just want to make certain pages have a solid black (#000000) background behind all the sections, top to bottom (including header and footer). Ideally this is something I could add to the header injection of specific pages, as my site-wide Custom CSS is getting crowded! 

But if that is the case, I know how to grab my site collection/sections codes, I just need the code to plug those into.

Thanks in advance for any help. 

If you use a Business Plan or higher, no need to find collection/section id, just add this code to Page Header

<style>
  .section-background, .page-section, .section-border, body {
  	background-color: black !important;
  }
</style>

 

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 11/19/2022 at 6:36 PM, tuanphan said:

If you use a Business Plan or higher, no need to find collection/section id, just add this code to Page Header

<style>
  .section-background, .page-section, .section-border, body {
  	background-color: black !important;
  }
</style>

 

Hey this is great! A followup: is there a way to adjust this code for gradients? I tried it but it adds the gradient for each section rather than placing one gradient behind all sections. Here's an example in the screenshot; there's just one section on this page, the rest is blank.

Screenshot 2022-11-21 at 11.04.27 PM.png

Edited by AndyKhouri
Link to comment
On 11/21/2022 at 11:05 PM, AndyKhouri said:

Hey this is great! A followup: is there a way to adjust this code for gradients? I tried it but it adds the gradient for each section rather than placing one gradient behind all sections. Here's an example in the screenshot; there's just one section on this page, the rest is blank.

Screenshot 2022-11-21 at 11.04.27 PM.png

I think I figured this out. If you put this code into the header code injection, you use a single gradient underneath all sections. And when you copy the code and adjust it for a different page, it affects only that page. Just replace my gradient particulars with your own.

 

<style>
 .site-wrapper {
      background: linear-gradient(100deg, #000000, #ffffff)!important;
  }
</style>

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.