Fix overhanging border

Solved

Fix overhanging border

kirsten11123
Shopify Partner
70 0 20

Hello,

 

I have removed padding in the header and now it is affecting the border at the end of the menu. The other side border on right seems fine. Can you please see what CSS I need to add to fix this?

Screenshot 2025-06-05 at 3.14.36 PM.png

 

https://8nn2yts4ix8zzwy1-71241957534.shopifypreview.com

Accepted Solution (1)
topnewyork
Astronaut
1549 191 253

This is an accepted solution.

@kirsten11123,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

.header__nav {
    margin-block: 0px !important;
}
Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

View solution in original post

Replies 10 (10)

websensepro
Shopify Partner
2137 267 318

Hi @kirsten11123 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

@media screen and (min-width: 990px) {
    body.is-at-top .header.header__nav-items--border .header__utils-items>li:first-child:before{
     display:none !important;
}

    .header__nav-items--border:not(.header--nav-centered) .header__nav-items {
        border-inline-end: unset !important;
        border-inline-end: none !important;
    }
}

Result:

websensepro_0-1749108101428.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! 🚀 (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
kirsten11123
Shopify Partner
70 0 20

Sorry I should specify I want the borders to remain (I can turn it off in the settings if I didn't want it - I just want it to not overhang over the heading area.

websensepro
Shopify Partner
2137 267 318

Hi @kirsten11123 
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

.header {
    overflow-y: hidden !important;
}

Reuslt:

websensepro_0-1749108799893.png

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
kirsten11123
Shopify Partner
70 0 20

Thanks, that's great!

kirsten11123
Shopify Partner
70 0 20

Oh no - now the dropdown menu won't show. Any idea how to change?

topnewyork
Astronaut
1549 191 253

This is an accepted solution.

@kirsten11123,
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

.header__nav {
    margin-block: 0px !important;
}
Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
kirsten11123
Shopify Partner
70 0 20

Wonderful, thank you!

topnewyork
Astronaut
1549 191 253

Hi @kirsten11123,

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

@media screen and (min-width: 990px) {
    .header__nav-items--border:not(.header--nav-centered) .header__nav-items {
        border-inline-end: 0px !important;
        padding-inline-end: var(--spacing-7);
    }
}

@media screen and (min-width: 990px) {
    body.is-at-top .header.header__nav-items--border .header__utils-items>li:first-child:before, body.is-at-top .header.header__nav-items--border:not(.header--nav-centered) .header__nav-items>li:last-child:before, body.is-at-top .header.header__nav-items--border.header--nav-centered .header__logo:before {
        background-color: rgb(254 246 225 / 0%) !important;
        opacity: var(--header-inner-after-opacity);
    }
}

topnewyork_0-1749108200597.png

 


Thanks!

 

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
kirsten11123
Shopify Partner
70 0 20

Sorry I should specify I want the borders to remain (I can turn it off in the settings if I didn't want it - I just want it to not overhang over the heading area. 

topnewyork
Astronaut
1549 191 253

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

.header__nav {
    margin-block: 0px !important;
}

topnewyork_0-1749108829565.png

 

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month