blix Posted August 29, 2020 Posted August 29, 2020 I am working on a site and I am having trouble having the dropdown menu align correctly when it opens. I was told if my navigation bar is adjusted to the right, this is what happens. I have changed the navigation bar position, such as to the left or center, and the dropdown menu works fine, but if adjusted to the right, it does not. Is there a code that I could use to correct this? Thank you!
tuanphan Posted August 29, 2020 Posted August 29, 2020 Can you share site url? We can check 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!)
blix Posted August 29, 2020 Author Posted August 29, 2020 https://rosajosies.squarespace.com/ dcookdesigns
derricksrandomviews Posted August 29, 2020 Posted August 29, 2020 (edited) This is the code I used to align the drop down menu text on my site, align the nav bar the way you need it to be then add the code to custom css, you can change it to right or center if you wish. #topNav .main-nav .folder-, collection .subnav ul { text-align: left; } My Random Views Edited August 29, 2020 by derricksrandomviews
derricksrandomviews Posted August 30, 2020 Posted August 30, 2020 Give it a try again my copy to the post may have changed something, and that includes spaces. #topNav .main-nav .folder-collection .subnav ul { text-align: left; }
tuanphan Posted August 30, 2020 Posted August 30, 2020 7 hours ago, derricksrandomviews said: Give it a try again my copy to the post may have changed something, and that includes spaces. #topNav .main-nav .folder-collection .subnav ul { text-align: left; } I think above site is 7.1, your code for 7.0 16 hours ago, blix said: It didn't work for me.... Incorrect password. 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!)
derricksrandomviews Posted August 30, 2020 Posted August 30, 2020 I thought that might be the case, 7.1 not 7.0.
blix Posted August 30, 2020 Author Posted August 30, 2020 Sorry about that. Here you go! https://rosajosies.squarespace.com/ blix0522 this should work.
derricksrandomviews Posted August 30, 2020 Posted August 30, 2020 I found this code for 7.1 drop down menus, once again change it to right or left. //-----dropdown menu alignment----- .header-nav-folder-item { text-align: left !important; }
blix Posted August 30, 2020 Author Posted August 30, 2020 I will give it try and report back:) Thank you!
blix Posted August 30, 2020 Author Posted August 30, 2020 no change, and I tried, left, right and center just for the heck of it. Nada.
tuanphan Posted August 31, 2020 Posted August 31, 2020 Add to Home > Design > Custom CSS /* Center dropdown */ .header-nav-folder-content { left: 50% !important; transform: translateX(-50%); } 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!)
blix Posted September 1, 2020 Author Posted September 1, 2020 Thank you so much. It's finally working correctly. I appreciate everyone's help in resolving this glitch! Jeanette
blix Posted September 1, 2020 Author Posted September 1, 2020 Hello, my navigation dropdown is perfect however one small request. My blue box is a little high and almost touching the text navigation. Could you tell me what I can insert in this code to drop it a little? /* Center dropdown */ .header-nav-folder-content { left: 50% !important; transform: translateX(-50%); text-align: center!important; width: 90px!important; } Thank you so much, Jeanette (7.1)
tuanphan Posted September 1, 2020 Posted September 1, 2020 Quote top: 20px !important; 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!)
blix Posted September 2, 2020 Author Posted September 2, 2020 Thank you, I was going to try something like that, so I guess I am learning!
hartley Posted February 19, 2023 Posted February 19, 2023 Old thread....but follow up question: That code worked to align one navigation dropdown menu, but not the second. How do I assign them different alignments? I want both dropdown menus to be under the "Shop+" category
tuanphan Posted February 20, 2023 Posted February 20, 2023 22 hours ago, hartley said: Old thread....but follow up question: That code worked to align one navigation dropdown menu, but not the second. How do I assign them different alignments? I want both dropdown menus to be under the "Shop+" category Hi. What is your site url? We can check 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!)
hartley Posted February 20, 2023 Posted February 20, 2023 (edited) @tuanphanURL is https://www.heroncabinetry.com/ Im okay with the drop down menu coming from the left for both navigation titles, but i was hoping to move it slightly to the right so the green edge from the dropdown menu matches the black left edge of the "Shop" button. I also want to move the drop down menu down a tiny bit so it hits the bottom edge of the "Shop" button. Shown in the example, I've also included my custom CSS for the header: Edited February 20, 2023 by hartley
tuanphan Posted February 20, 2023 Posted February 20, 2023 6 hours ago, hartley said: @tuanphanURL is https://www.heroncabinetry.com/ Im okay with the drop down menu coming from the left for both navigation titles, but i was hoping to move it slightly to the right so the green edge from the dropdown menu matches the black left edge of the "Shop" button. I also want to move the drop down menu down a tiny bit so it hits the bottom edge of the "Shop" button. Shown in the example, I've also included my custom CSS for the header: Don't remove any code in your current code. Add this to Design > Custom CSS .header-nav-item.header-nav-item--folder { position: relative !important; } .header-nav-folder-content { left: 0 !important; } hartley 1 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!)
hartley Posted February 20, 2023 Posted February 20, 2023 @tuanphanthat worked perfectly! thank you! Now do you know how I would lower the dropdown menu box so it doesn't cover any of the black "Shop" button?
tuanphan Posted February 21, 2023 Posted February 21, 2023 3 hours ago, hartley said: @tuanphanthat worked perfectly! thank you! Now do you know how I would lower the dropdown menu box so it doesn't cover any of the black "Shop" button? Add margin-top .header-nav-folder-content { left: 0 !important; margin-top: 10px; } hartley 1 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment