Sark Posted May 29, 2020 Share Posted May 29, 2020 Site URL: https://burgundy-carnation-bw5b.squarespace.com/ Hi all! I am having trouble aligning the text in the drop-down menus in my navigation bar. I wanted the drop-down menu text to be left-aligned and used this code to achieve that: } .header-nav-folder-item { text-align: left !important; } HOWEVER, for some reason now that drop-down menu is way off to the left and is totally off center from it's parent folder in the navigation bar. How do I keep the drop-down menu text left aligned but make sure it is sitting DIRECTLY underneath the parent folder? Thank you in advance! Link to comment
tuanphan Posted May 30, 2020 Share Posted May 30, 2020 Try adding to Home > Design > Custom CSS a.header-nav-folder-title:hover + div, .header-nav-folder-content { text-align: center !important; position: absolute; left: 50% !important; right: unset !important; -webkit-transform: translatex(-50%); -o-transform: translatex(-50%); transform: translatex(-50%); background: transparent !important; } fhoreilly and hummingbird 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
JanaH Posted December 28, 2020 Share Posted December 28, 2020 (edited) Site URL: https://www.backspacelaser.com/ Hi, I'm having the same problem. I've used the code above which works, but for some reason it only works on the first nav link... On 'SHOP' the text sits too far too the right. Edited December 28, 2020 by JanaH Link to comment
tuanphan Posted January 3, 2021 Share Posted January 3, 2021 On 12/28/2020 at 7:48 PM, JanaH said: Site URL: https://www.backspacelaser.com/ Hi, I'm having the same problem. I've used the code above which works, but for some reason it only works on the first nav link... On 'SHOP' the text sits too far too the right. Hi. Sorry for the delay. I was off some days for the new year, Do you still need help? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
zlinekitchen Posted February 11, 2021 Share Posted February 11, 2021 I'm having a related issue, where the first two menus are left-aligned, then the last menu is right-aligned for some reason? I'd appreciate any insight! Link to comment
tuanphan Posted February 14, 2021 Share Posted February 14, 2021 On 2/12/2021 at 6:30 AM, zlinekitchen said: I'm having a related issue, where the first two menus are left-aligned, then the last menu is right-aligned for some reason? I'd appreciate any insight! Can you share site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
joecosentino Posted February 20, 2021 Share Posted February 20, 2021 Thank you for the code, I played with the %'s a little and my drop down is now located where I want it also changed background to white so the drop down did not get lost in the websites text. Thank you for posting the basic code Link to comment
puslingpaahaender Posted November 10, 2021 Share Posted November 10, 2021 Will this work for the navigation menu in the shop? I have a code for a navigation menu on the category pages in the shop. But I have trouble aligning the Prints section which has a dropdown menu and is pushing everything around. Link to comment
puslingpaahaender Posted November 10, 2021 Share Posted November 10, 2021 The images were wrong. Here are the right ones. Link to comment
tuanphan Posted November 12, 2021 Share Posted November 12, 2021 On 11/10/2021 at 3:28 PM, puslingpaahaender said: The images were wrong. Here are the right ones. What is your site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
puslingpaahaender Posted November 12, 2021 Share Posted November 12, 2021 4 hours ago, tuanphan said: What is your site url? Hello tuanphan. I was reaching out on another site/question with the same trouble. You just answered there😊. It didn't solve the issue unfortunately. And I thought that a solution similar to that of the nav header and changing position of drop down might do the trick. If you'd like to take a look my url is www.storiesofsmallthings.com 12345julia I'd very much appreciate it. thank you! Link to comment
tuanphan Posted November 14, 2021 Share Posted November 14, 2021 On 11/12/2021 at 5:19 PM, puslingpaahaender said: Hello tuanphan. I was reaching out on another site/question with the same trouble. You just answered there😊. It didn't solve the issue unfortunately. And I thought that a solution similar to that of the nav header and changing position of drop down might do the trick. If you'd like to take a look my url is www.storiesofsmallthings.com 12345julia I'd very much appreciate it. thank you! Just answered. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Sukhvir Posted September 25, 2023 Share Posted September 25, 2023 a.header-nav-folder-title:hover + div, .header-nav-folder-content { text-align: left !important; position: absolute; left: 0 !important; right: unset !important; -webkit-transform: translateX(0) !important; -o-transform: translateX(0) !important; transform: translateX(0) !important; background: transparent !important; } This makes everything sorted and solved for all kind of navigation menus. Link to comment
Sukhvir Posted September 25, 2023 Share Posted September 25, 2023 On 5/30/2020 at 12:58 AM, Sark said: Site URL: https://burgundy-carnation-bw5b.squarespace.com/ Hi all! I am having trouble aligning the text in the drop-down menus in my navigation bar. I wanted the drop-down menu text to be left-aligned and used this code to achieve that: } .header-nav-folder-item { text-align: left !important; } HOWEVER, for some reason now that drop-down menu is way off to the left and is totally off center from it's parent folder in the navigation bar. How do I keep the drop-down menu text left aligned but make sure it is sitting DIRECTLY underneath the parent folder? Thank you in advance! On 12/28/2020 at 6:18 PM, JanaH said: Site URL: https://www.backspacelaser.com/ Hi, I'm having the same problem. I've used the code above which works, but for some reason it only works on the first nav link... On 'SHOP' the text sits too far too the right. a.header-nav-folder-title:hover + div, .header-nav-folder-content { text-align: left !important; position: absolute; left: 0 !important; right: unset !important; -webkit-transform: translateX(0) !important; -o-transform: translateX(0) !important; transform: translateX(0) !important; background: transparent !important; } This will help you for sure. tuanphan 1 Link to comment
aevesam Posted January 4 Share Posted January 4 (edited) Hello! This code was SUPER helpful – thank you!! Because I'm using a vertical navbar however, the submenu text is overlaying the remaining menu text when it drops down upon hover over or clicking on. Would you be able to help me with code (for SQSP 7.1) to push the rest of the menu down, to allow space for the drop-down menu? In advance, much much appreciated! Edited January 4 by aevesam Link to comment
tuanphan Posted January 7 Share Posted January 7 On 1/4/2024 at 9:08 AM, aevesam said: Hello! This code was SUPER helpful – thank you!! Because I'm using a vertical navbar however, the submenu text is overlaying the remaining menu text when it drops down upon hover over or clicking on. Would you be able to help me with code (for SQSP 7.1) to push the rest of the menu down, to allow space for the drop-down menu? In advance, much much appreciated! Can you share site url? We can check this easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
paramjeet.kour08 Posted January 7 Share Posted January 7 On 1/4/2024 at 7:38 AM, aevesam said: Hello! This code was SUPER helpful – thank you!! Because I'm using a vertical navbar however, the submenu text is overlaying the remaining menu text when it drops down upon hover over or clicking on. Would you be able to help me with code (for SQSP 7.1) to push the rest of the menu down, to allow space for the drop-down menu? In advance, much much appreciated! Share website url pls? Hi ! I am Paramjeet kaur Top rated SquareSpace Web Designer and Web Developer with SEO For Web Sites. Working Now As freelancer With lowest Rate. Rate $20 per hour. Till date, I have created over 300 + websites in Squarespace. Contact Me Email Link to comment
buzzsites Posted February 6 Share Posted February 6 Hi, could you provide me with the code to make the drop down center aligned? My client is insisting on having it this way Link to comment
tuanphan Posted February 8 Share Posted February 8 On 2/7/2024 at 4:29 AM, buzzsites said: Hi, could you provide me with the code to make the drop down center aligned? My client is insisting on having it this way You can use #7 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment