Jump to content

Top footer block padding

Recommended Posts

Site URL: https://sprout-tuna-swnf.squarespace.com

I want the top of my footer to be a different colour to the rest of it. How do I remove the padding so the orange goes right across the width of the page and doesn't show any of the grey at the top?

I already tried this:

.Footer-inner{
        padding: 0px
}

but when I do that it leaves a line along the side of the whole page (see attached).

Please could someone help??

screenshot top footer.PNG

screenshot footer no padding.PNG

Link to comment
  • Replies 4
  • Views 1.6k
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

@media screen and (min-width:901px) {
.Footer-inner {
    padding-left: 0;
    padding-right: 0;
}
.Footer-inner>div:not(:first-child) {
    padding-left: 125px;
    padding-right: 125px;
}
}

 

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 minutes ago, keon said:

Thanks. That works on desktop but not on mobile. I'm assuming this is because of the @media screen and (min-width:901px) you added in? It works when I don't include that part but will leaving it out cause other issues?

above code runs only desktop. Mobile needs different code

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.