Jump to content

Change layout/design of main navigation dropdown

Recommended Posts

  • ChiroUp changed the title to Change layout/design of main navigation dropdown
  • Replies 5
  • Views 375
  • Created
  • Last Reply

Top Posters In This Topic

.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
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 by ChiroUp
Link to comment
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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
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. 

Screen Shot 2021-11-01 at 3.46.40 PM.png

Link to comment
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. 

Screen Shot 2021-11-01 at 3.46.40 PM.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.