Jump to content

Hamburger Menu on Desktop without affecting mobile menu design

Recommended Posts

Site URL: https://lychee-fish-d69t.squarespace.com/


I am trying to make my desktop site menu the same as mobile menu without affecting mobile menu. I got a code from other questions in forum but it seems that the line height is much bigger. Anyone can help me to make it more smaller without affecting the mobile design? I also want to make the box smaller and lower the opacity of the background. THanks

Here's the code that I am using :

.header .header-burger{display:flex} .header-nav, .header-actions {display:none}
.header--menu-open .header-menu {
opacity: 1;
visibility: visible;
width: 30%;
margin-left: 70%;
box-shadow: -5px 5px 15px #000}
div.header-menu-nav-item a {
    font-size: 20px !important;
    padding: 10px;
.header-menu-nav-item {line-height: 10px!important;}

@media screen and (min-width:992px) {
.header-menu-actions {
    justify-content: center !important;
.header-menu-cta {
    position: relative;
    top: -100px;
@media screen and (max-width:991px) {
.header--menu-open .header-menu {
    width: 100% !important;
    margin-left: 0 !important;



Link to comment
  • Replies 3
  • Views 371
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.