Jump to content

Customize navigation dropdown menu

Recommended Posts

  • Replies 9
  • Views 424
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (edited)

hello,

https://alpaca-seadragon-j45t.squarespace.com/

I have come a bit further with CSS coding. I would like to know how to make borders around the dropdown box on my burger menu? More like a vertical line than runs along the box and fixates the dropdown menu so you cant scroll anymore. Any suggestiions?

 

Edited by Negin
Posted (edited)

Yes! that is where i partly got my codes from, however I would like to adjust the size and colour of the border of the box and take away the shadow. 

Thank you ❤️

Edited by Negin
Posted

@Negin, I updated the code, you can play with it, see attached screenshot:

.header .header-burger{
display:flex
}
.header-nav, .header-actions {
display:none
}
.header--menu-open .header-menu {
opacity: 1; visibility: visible;
}


.header .header-burger{
display:flex
} 
.header-nav, .header-actions {display:none}
.header--menu-open .header-menu {
opacity: 1;
visibility: visible;
width: 50%;
margin-left: 50%;
  border: solid 1px;
}

 

Screenshot 2024-10-17 at 15.23.23.png

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

Posted

Thank you so much! Ill try the added code " border" in the upcoming days once i have my website up and running. 

Kind regards, 

Yasmin

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.