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
  • Views 677
  • Created
  • Last Reply

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

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.