Jump to content

Adding padding to the navigation, but keeping the site margin set at 0

Recommended Posts

Site URL: https://viola-turquoise-f66n.squarespace.com/

*the password to view is password*

I need to manually add a little padding to the navigation menu on my site so that the site name is aligned all the way on the left, but I want to keep my site Margin at 0 because throughout the rest of the site I don't want any padding.

Is there a bit of code that would allow me to do this?

In the screen shot you can see how the name "Greg" is all the way to the left.

 

Screen Shot 2020-11-13 at 8.03.32 PM.png

Link to comment
  • Replies 7
  • Created
  • Last Reply
5 hours ago, creedon said:

It appears you already solved this issue?

101944143_ScreenShot2020-11-13at8_40_45PM.png.886d6e7967409fb9f3c21a9489b10dc6.png

Let us know if not.

She sent me a message & I gave the code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

That worked on the other pages, but not the one I screen shot. That one is currently a portfolio page I had turned into a 1-column page. 

So here's the code as I have it now:

@media screen and (min-width:768px) 
{
header#header {
    padding-left: 2.5vw;
    padding-right: 2.5vw;
}
}
/* 100% (auto) */

/*5fad6b44253fde48501f2902*/ [class^="portfolio-grid-"] {

  grid-template-columns: auto;
}

 

Any insight on how to make the 1-column portfolio show up without a margin on mobile?

Link to comment
@media screen and (min-width:768px) {
header#header {
    padding-left: 2vw;
    padding-right: 2vw;
}
}
@media screen and (max-width:767px) {
div#gridThumbs {
    padding-left: 0;
    padding-right: 0;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.