My Store URL : DanLo
I have menus in the header section of my Shopify store, and I want to move these menus slightly upwards without increasing the overall header size. I also want to leave a small gap below the menus and reduce the size of the header below the menus. However, I want these changes to only affect the desktop view, not the mobile view. Could you provide a custom CSS code for this?
2 Likes
Hello @Dan1213
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
.header nav.header__inline-menu {
position: relative;
top: -10px;
}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This code works fine. Additionally, I want to reduce the size of header from both sides i.e., above and below as well. Please help me with that as well
1 Like
Do you want like this? @Dan1213