Jump to content

Change padding/margins on navigation header

Recommended Posts

Hi! The only way I could get my header image to expand across the entire screen was with some custom CSS as shown on the screen. The only issue is now my navigation has 0px space on the right and left. I'd like to add some px (maybe 10-30?) on each side. How do I do this just for the navigation? I'm also open to alternatives if my original idea of deleting all margins was a bad one.

Additionally - I set me button settings to be bold and all caps text like the navigation text, but for some reason it wont show up in the navigation button. how do I fix?

Thanks!

password to website: password

Link to comment
22 minutes ago, Jl87 said:

Hi! The only way I could get my header image to expand across the entire screen was with some custom CSS as shown on the screen. The only issue is now my navigation has 0px space on the right and left. I'd like to add some px (maybe 10-30?) on each side. How do I do this just for the navigation? I'm also open to alternatives if my original idea of deleting all margins was a bad one.

Additionally - I set me button settings to be bold and all caps text like the navigation text, but for some reason it wont show up in the navigation button. how do I fix?

Thanks!

password to website: password

Can you share your website URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
12 minutes ago, Jl87 said:

sorry! dont know why it didnt share: www.gtmenabler.com

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.header-announcement-bar-wrapper {
    padding-right: 30px !important;
    padding-left: 30px !important;
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
3 minutes ago, Jl87 said:

Thank you! Additionally - I set my button settings to be bold and all caps text like the navigation text, but for some reason the button in the navigation that I added it wont show up like that (its not bold or all caps). how do I fix?

Add the code

.header-actions-action--cta *{
    font-weight: bold !important;
    text-transform: uppercase !important;
}

 

Screenshot_454.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
1 hour ago, Jl87 said:

The only way I could get my header image to expand across the entire screen was with some custom CSS as shown on the screen. 

Hi, how did you "delete" all your site margins? I can see your site-wide margin is set to 0, but this can be done in Site Styles without using Custom CSS. I would suggest doing it via Site Styles to keep it less confusing to maintain, unless there is a specific reason to do it via Custom CSS.

1 hour ago, Jl87 said:

How do I do this just for the navigation? I'm also open to alternatives if my original idea of deleting all margins was a bad one.

You can target just the navigation bar margins like @Web_Solutions has provided above. I would suggest not setting Site wide margins to be zero, because then you come into issues like this page

https://www.gtmenabler.com/enablerblog

Unless this is the desired effect, all blog posts to be right up against the screen edges?

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment
8 minutes ago, melody495 said:

Hi, how did you "delete" all your site margins? I can see your site-wide margin is set to 0, but this can be done in Site Styles without using Custom CSS. I would suggest doing it via Site Styles to keep it less confusing to maintain, unless there is a specific reason to do it via Custom CSS.

You can target just the navigation bar margins like @Web_Solutions has provided above. I would suggest not setting Site wide margins to be zero, because then you come into issues like this page

https://www.gtmenabler.com/enablerblog

Unless this is the desired effect, all blog posts to be right up against the screen edges?

Sorry. I did it via the Site Styles. The reason I wanted 0 margins, is because no matter what I did, my banner image for a background image kept showing white space on the sides. See image for example. The only way to avoid that (of which I knew!) was margin to 0. 

Screen Shot 2023-11-30 at 11.35.47 AM.png

Screen Shot 2023-11-30 at 11.36.06 AM.png

Link to comment
5 hours ago, Jl87 said:

my banner image for a background image kept showing white space on the sides. 

You shouldn't have to change site margins to achieve this. 

It looks like you've set the background image as "inset". Changing it to "full bleed" would make the image fill the section without any spaces around.

Edit Section -> Background -> under Background Width, choose Full Bleed. You would have to set your site wide margin to non-zero to see the difference.

image.png.e61ebc196b19322c3b1049bb1ad313d7.png

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment
On 12/1/2023 at 12:55 AM, Jl87 said:

I tried that. It stretches the image weird and no matter where I move the focal point or how I change the height of the image, it wont put the full image in view. 

You will need to increase the section height, because with full bleed your image is bigger. 

If you don't like how it looks, and don't want to adjust the site wide margin to accommodate this image, you can instead of adding the image as a section background image, add an image block to your section and adjust to the size so it fits edge-to-edge.

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment
On 12/1/2023 at 12:55 AM, Jl87 said:

I tried that. It stretches the image weird and no matter where I move the focal point or how I change the height of the image, it wont put the full image in view. See screenshot below. Any suggestions?

 

Screen Shot 2023-11-30 at 4.53.50 PM.png

Your image is not stretched in your screenshot here. You simply need to increase your section height so that the image has enough space to fit.

9 minutes ago, Jl87 said:

Yes. I did all of this. I originally added just as image block and it wouldn’t show right now matter how I adjusted. Then I tried the full bleed and it got funky again.

Part of the issue is that your text is part of the image. If you use a text block for your hero text, then the text will be responsive independent to your background image. 

 

But anyway, looks like you've found a way to make it work for you. This only becomes an issue if in the future you decide to change your site margins.

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

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.