Nomis Posted January 4 Share Posted January 4 Hi folks, I'd like to make a change on my site and need your help. I'd like to modify the dropdown menu and style it as follows: The shape and spacing should resemble what is shown in the attached screenshot. The text (the links) should be left-aligned. The hover effect should remain as it is now. I would also like to be able to change the color of the menu background. I would greatly appreciate your assistance! Site: https://maltemartenmethod.squarespace.com/ Pword: maltemartenmethod2023 Link to comment
tuanphan Posted January 5 Share Posted January 5 You can use this CSS code div.header-nav-folder-content { background-color: #f1f !important; } div.header-nav-folder-content * { text-align: left !important; } Manst2002 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!) Link to comment
Nomis Posted January 5 Author Share Posted January 5 Thank you @tuanphan, that works so far. How can I style the background of the menu to look like the screenshot I sent above (Dropdown menu just like here on the Squarespace Forum page)? It should be centered below the navigation menu items with an upward-pointing 'cap' at the top. There should be some more space above the links and between the links in the dropdown menu. Could you assist me with this again? Link to comment
Nomis Posted January 6 Author Share Posted January 6 @tuanphan, it would be wonderful if you could assist me with this again! 😊 Link to comment
tuanphan Posted January 7 Share Posted January 7 I see you figured arrow. To make it centered under nav menu titles, use this CSS code .header-nav-folder-content { left: 50% !important; transform: translateX(-50%) !important; } marmarrr 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!) Link to comment
Nomis Posted January 7 Author Share Posted January 7 Thank you @tuanphan, that worked. However, I would still like to style the dropdown menu as shown in the screenshot: a bit more spacing above the header navigation and a bit more space between the items in the menu itself. Additionally, I'd like to have an arrow shape at the top - do I need to upload an image for that, or can it be styled using code? I'm looking forward to your assistance. Here's how I want it: Here's how it looks now: Link to comment
Nomis Posted January 9 Author Share Posted January 9 Hey @tuanphan, it would be great if you could help me out with this again! 🙏 Link to comment
tuanphan Posted January 10 Share Posted January 10 Use this CSS code .header-nav-folder-item { margin-bottom: 20px; } .header-nav-folder-content:before { content: ""; position: absolute; width: 30px; height: 30px; background-color: #5b767a !important; left: 50%; top: -10px; transform: translateX(-50%) rotate(45deg); } .header-nav-folder-content { margin-top: 10px; } 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
Nomis Posted January 10 Author Share Posted January 10 Thank you @tuanphan, that looks pretty good already. One thing is not working quite right. When moving the cursor from the navigation points like 'Online Courses' down to the dropdown menu, it always disappears, and you can't select the items in the dropdown menu. It only works when moving the cursor over the small downward arrow. I would like the dropdown menu to be less cumbersome to select. Look forward to further assistance! Link to comment
tuanphan Posted January 11 Share Posted January 11 Try this CSS under div.header-nav-item>a { height: 40px !important; display: flex !important; align-items: center; } .header-nav-folder-content { top: 25px !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!) Link to comment
Nomis Posted January 15 Author Share Posted January 15 Thanks @tuanphan, you can now move the cursor down without the dropdown menu disappearing, but the code disrupts the spacing, etc. The dropdown menu moves up, and the underline when activating the navigation points appears, moving downward. Unfortunately, I don't like it this way. Is there another way to fix the problem? Looking forward to further assistance! Site: https://maltemartenmethod.squarespace.com/ Pword: maltemartenmethod2023 Link to comment
Nomis Posted January 18 Author Share Posted January 18 @tuanphan it would be great if you could help me with this again! 🙏 Link to comment
tuanphan Posted January 19 Share Posted January 19 On 1/11/2024 at 9:36 AM, tuanphan said: Try this CSS under div.header-nav-item>a { height: 40px !important; display: flex !important; align-items: center; } .header-nav-folder-content { top: 25px !important; } You can remove the code, I will try testing code again Nomis 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!) Link to comment
Nomis Posted January 25 Author Share Posted January 25 @tuanphan I deleted the code for now. Do you have another idea on how to solve this differently? Link to comment
Nomis Posted February 4 Author Share Posted February 4 On 1/10/2024 at 8:48 PM, Nomis said: Thank you @tuanphan, that looks pretty good already. One thing is not working quite right. When moving the cursor from the navigation points like 'Online Courses' down to the dropdown menu, it always disappears, and you can't select the items in the dropdown menu. It only works when moving the cursor over the small downward arrow. I would like the dropdown menu to be less cumbersome to select. Look forward to further assistance! @tuanphan could you take another look at it? Unfortunately, the same issue still persists. I would greatly appreciate your help! Link to comment
tuanphan Posted February 11 Share Posted February 11 Try this CSS code @media screen and (min-width: 992px) { .header-nav-item { padding: 20px 0; }} Nomis 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!) Link to comment
Lucy183 Posted September 2 Share Posted September 2 On 1/10/2024 at 10:33 AM, tuanphan said: Use this CSS code .header-nav-folder-item { margin-bottom: 20px; } .header-nav-folder-content:before { content: ""; position: absolute; width: 30px; height: 30px; background-color: #5b767a !important; left: 50%; top: -10px; transform: translateX(-50%) rotate(45deg); } .header-nav-folder-content { margin-top: 10px; } Hi @tuanphan I used this code that you provided to add the diamond arrow, but I'm facing an issue where the diamond is stacked on top of my dropdown menu box and thus blocking my texts. Is there a way to arrange it such that is below the background of the dropdown menu box? Below is a screenshot of my issue. Hope that you can assist, thank you so much! 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