creativesurfing Posted December 13, 2021 Share Posted December 13, 2021 (edited) Site URL: https://www.rjparchitects..com Hello, I added a new item to my menu - 'testimonials' , and the word isn't fitting within my burger menu width on mobile device. I would like to reduce the left hand margin shown in the screenshot so it fits? I would like to keep the right hand side the same so it stays aligned with the X (close burger) icon. So ideally the word testimonial just starts a little bit further to the left? I've just reduced the text size for now so it doesn't look bad, but I'd like to change it back as its a bit small really. The current CSS Code I am using in relation to the burger menu is: /* MOBILE BURGER MENU */ /* Top aligned text in burger menu */ .header-menu-nav-folder-content { justify-content: unset; } /* Text size and alignment burger menu */ .header-menu-nav-item a { font-size: 20px; } /* Partial dropdown width and aligned to right hand side */ @media screen and (max-width:769px) {.header-nav, .header-actions { display: none!important} .header-burger { display: flex!important;} .header--menu-open .header-menu {opacity: 1; visibility: visible; width: 37.5%; margin-left: 62.5%}} Edited December 13, 2021 by creativesurfing Link to comment
Beyondspace Posted December 13, 2021 Share Posted December 13, 2021 1 hour ago, creativesurfing said: Site URL: https://www.rjparchitects.com Hello, I added a new item to my menu - 'testimonials' , and the word isn't fitting within my burger menu width on mobile device. I would like to reduce the left hand margin shown in the screenshot so it fits? I would like to keep the right hand side the same so it stays aligned with the X (close burger) icon. So ideally the word testimonial just starts a little bit further to the left? I've just reduced the text size for now so it doesn't look bad, but I'd like to change it back as its a bit small really. The current CSS Code I am using in relation to the burger menu is: /* MOBILE BURGER MENU */ /* Top aligned text in burger menu */ .header-menu-nav-folder-content { justify-content: unset; } /* Text size and alignment burger menu */ .header-menu-nav-item a { font-size: 20px; } /* Partial dropdown width and aligned to right hand side */ @media screen and (max-width:769px) {.header-nav, .header-actions { display: none!important} .header-burger { display: flex!important;} .header--menu-open .header-menu {opacity: 1; visibility: visible; width: 37.5%; margin-left: 62.5%}} Try adding to Home > Design > Custom Css @media only screen and (max-width: 767px) { .header-menu-nav-folder-content .header-menu-nav-item a { margin-right: 7px; } } Let me know how it works on your site Support me by pressing 👍 if this useful for you creativesurfing 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondspace Posted December 13, 2021 Share Posted December 13, 2021 My testing result creativesurfing 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
creativesurfing Posted December 13, 2021 Author Share Posted December 13, 2021 Thank you - it worked although I had to adjust it and use 'left' instead of 'right'. With 'right' it moved all the text closer to the right hand side of the screen rather than left towards the middle of the page. 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