Jump to content

Adjusting Padding from Header to Section

Go to solution Solved by tuanphan,

Recommended Posts

Hello, I'm trying to adjust the padding on my Contact Page - I want the header border line to meet the blocks below it leaving no space. Is there CSS to do this? I've tried this code, but it only changes the padding on the bottom of the images:

[data-section-id="669131d426f3f92746c68cd5"] .content-wrapper {
    padding-top: 0px !important;
    padding-bottom: 1px !important;
}

 

Link to contact here: https://www.dearmamacandleco.com/contact

Link to comment
  • Replies 3
  • Views 627
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

With this page, I think you should remove Header border and set Section Top Border. Use this CSS code

/* Contact Page */
body#collection-669131d426f3f92746c68cd2 {
.header-border {
    border: none !important;
}
article>section:first-child .content-wrapper {
    border-top: 1px solid #000;
}}

I suggest this way, because to adjust padding, you will need to use code to adjust on all screen sizes (each screen size, it has a different padding)

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
  • 3 weeks later...
On 8/1/2024 at 1:04 AM, J-Flo said:

Wonderful, Tuanphan! That worked.

Is it possible to do the same on my Home page below my Instagram feed where it says "follow our journey"? There is a space below the feed as well and I can't figure out how to remove it. https://www.dearmamacandleco.com/

You mean these?

image.thumb.png.d158ff4f4c557c13b4989b4cb5b520fb.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

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.