ChiroUp Posted October 27, 2021 Share Posted October 27, 2021 (edited) Site URL: https://harp-roadrunner-6sxc.squarespace.com/ Password: 123456 Is there a way to code a dropdown menu that looks like this? We want everything to live under one folder (Solutions) but 2 of the subfolders to live on the left side kinda in their own category and then the other ones on the right side. Picture attached to what we are going for. Edited October 28, 2021 by ChiroUp Link to comment
Wolfsilon Posted October 27, 2021 Share Posted October 27, 2021 .header-nav-folder-content { display: grid; grid-template-columns: repeat(2,1fr); width: auto; grid-gap: 10px; grid-template-rows: repeat(2,100px); place-items: center; } .header-nav .header-nav-item--folder .header-nav-folder-content { min-width: unset !important; } a.header-nav-folder-title:hover + div, .header-nav-folder-content { left: 0% !important; transform: translatex(0%); } It's a little tricky to do this because you don't have all of the 6 categories and I haven't done any responsive-ness to this. I've built this grid to provide a code that would get you started. Also, now you'll want to find out how to upload a small image to each title, this could be a bit more tricky but hopefully this points you in the right direction. Link to comment
ChiroUp Posted October 28, 2021 Author Share Posted October 28, 2021 (edited) 19 hours ago, Wolfsilon said: .header-nav-folder-content { display: grid; grid-template-columns: repeat(2,1fr); width: auto; grid-gap: 10px; grid-template-rows: repeat(2,100px); place-items: center; } .header-nav .header-nav-item--folder .header-nav-folder-content { min-width: unset !important; } a.header-nav-folder-title:hover + div, .header-nav-folder-content { left: 0% !important; transform: translatex(0%); } It's a little tricky to do this because you don't have all of the 6 categories and I haven't done any responsive-ness to this. I've built this grid to provide a code that would get you started. Also, now you'll want to find out how to upload a small image to each title, this could be a bit more tricky but hopefully this points you in the right direction. Okay I updated my site with the correct pages + made changes to the image to reflect more for what we are going. I only want the edit the Solutions dropdown, not the rest of the dropdowns. Let me know if this helps and if this is possible. Edited October 28, 2021 by ChiroUp Link to comment
tuanphan Posted October 31, 2021 Share Posted October 31, 2021 On 10/29/2021 at 12:09 AM, ChiroUp said: Okay I updated my site with the correct pages + made changes to the image to reflect more for what we are going. I only want the edit the Solutions dropdown, not the rest of the dropdowns. Let me know if this helps and if this is possible. Remove above code & use this code a.header-nav-folder-title[href="/solutions"] + .header-nav-folder-content { display: grid; grid-template-columns: repeat(2,1fr); width: auto; grid-gap: 10px; grid-template-rows: repeat(2,100px); place-items: center; } a.header-nav-folder-title[href="/solutions"] + .header-nav-folder-content { min-width: unset !important; } a.header-nav-folder-title[href="/solutions"]:hover + div, a.header-nav-folder-title[href="/solutions"] .header-nav-folder-content { left: 0% !important; transform: translatex(0%); } If it doesn't work, please remove my code + above code, we will check it again Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
ChiroUp Posted November 1, 2021 Author Share Posted November 1, 2021 On 10/30/2021 at 8:57 PM, tuanphan said: a.header-nav-folder-title[href="/solutions"] + .header-nav-folder-content { display: grid; grid-template-columns: repeat(2,1fr); width: auto; grid-gap: 10px; grid-template-rows: repeat(2,100px); place-items: center; } a.header-nav-folder-title[href="/solutions"] + .header-nav-folder-content { min-width: unset !important; } a.header-nav-folder-title[href="/solutions"]:hover + div, a.header-nav-folder-title[href="/solutions"] .header-nav-folder-content { left: 0% !important; transform: translatex(0%); } So this is how it's showing up when adding in that code. I went ahead and removed it, to see if there's another code I can add. Thank you for looking into this. Link to comment
tuanphan Posted November 4, 2021 Share Posted November 4, 2021 On 11/2/2021 at 3:47 AM, ChiroUp said: So this is how it's showing up when adding in that code. I went ahead and removed it, to see if there's another code I can add. Thank you for looking into this. Try this new code. I adjusted something a.header-nav-folder-title[href="/solutions"] + .header-nav-folder-content { display: grid; grid-template-columns: repeat(2,1fr); width: auto; grid-gap: 10px; grid-template-rows: repeat(2,20px); place-items: left; } a.header-nav-folder-title[href="/solutions"] + .header-nav-folder-content { min-width: unset !important; } a.header-nav-folder-title[href="/solutions"]:hover + div, a.header-nav-folder-title[href="/solutions"] .header-nav-folder-content { left: 0% !important; transform: translatex(0%); } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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