Jump to content

Adding Marin/Padding for Header bar to be aligne with body.

Recommended Posts

 

Hi all. 

As you can see on the picture bellow the logo is nicely aligned with the body of the grid. 

image.thumb.png.b17bfa96126af93c2f04408b55d1f62a.png

 

As soon as the page is widened, it shifts as you can see on the image bellow. Any way of making the logo and menu always aligned with body of page ? Keeping in mind that in the "style Styles section, i would like to keep a "Site Margin of 2vw". 

image.thumb.png.6d457552118ee22dc38dc1b06e61ccea.png

 

Thanks. 

 

Screenshot 2022-12-08 170215.png

Edited by makeartnotwar
Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try this Custom CSS:

@media only screen and (min-width:1860px) {
  .tweak-portfolio-grid-overlay-width-inset .portfolio-grid-overlay {
    padding-left: 0vw !important;
    padding-right: 0vw !important;
  }
}
@media only screen and (max-width:1800px) {
  .tweak-portfolio-grid-overlay-width-inset .portfolio-grid-overlay {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
}

 

Please like and upvote if my comments were useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

Link to comment
3 minutes ago, Ziggy said:

Try this Custom CSS:

@media only screen and (min-width:1860px) {
  .tweak-portfolio-grid-overlay-width-inset .portfolio-grid-overlay {
    padding-left: 0vw !important;
    padding-right: 0vw !important;
  }
}
@media only screen and (max-width:1800px) {
  .tweak-portfolio-grid-overlay-width-inset .portfolio-grid-overlay {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
  }
}

 

You're  a legend. 
Could you provide with same solution for mobile version ? Pretty please. 
Thanks 🙂 !

Link to comment
  • 2 weeks 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.