Jump to content

Extend Footer color to full width

Go to solution Solved by tuanphan,

Recommended Posts

I'm trying to make the footer go full width to the screen left, right and bottom. I have custom CSS that I've modified so far:

#footer
{
  background: #000066;  
padding: 30px;  
  margin-top: 60px;
text-align: left; 
}

But can't figure out how to make the margin or padding to the container to 0. Not sure if I have the language correct here.

Screen Shot 2022-11-23 at 11.45.47 AM.png

Link to comment
On 11/29/2022 at 8:55 PM, galbers said:

@tuanphan Just put the max-width code in the custom CSS and it doesn't seem to be adjusting to the full width of screen. Is there another option? Do I need to select the block instead?

Screen Shot 2022-11-29 at 8.54.00 AM.png

I see it worked here. Or you need footer touch the left & right of screen?

image.thumb.png.3e3569ed40acb464d82fca59d9075974.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
  • Solution
On 12/2/2022 at 9:00 PM, galbers said:

@tuanphan Yes, I want the footer color to touch left, right, bottom of screen. Do you know how to code that?

Use this new code

html, body {
    overflow-x: hidden;
}
footer#footer {
    background: #006;
    padding: 30px;
    margin-top: 60px;
    text-align: left;
    max-width: 100% !important;
    position: absolute;
    left: 0;
    width: 100%;
}

 

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 year later...
On 2/28/2024 at 6:05 AM, Abbybricks said:

We have a footer but it only goes the full width on certain pages. Not sure what code to use to fix that. www.megbraffdesigns.com is fine, full width. Product pages like https://www.megbraffdesigns.com/special-inscription-book do not spread to the full page width. 

image.thumb.png.0029da7565c683af7fd52691bef79b31.png

The page doesn't exist. Can you check it again?

 

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.