LLLes Posted May 30, 2022 Share Posted May 30, 2022 Site URL: https://www.lpyluk.com/ Hello, Site password: 09876 I have 2 questions: 1. I used this code to center my mobile nav, but somehow it's still left aligned and I'm not sure how to fix this: /*main menu*/ .Mobile-overlay-nav { position: absolute; top: 50%; left: 60%; transform: translate(-50%,-50%); } /*folder menu*/ .Mobile-overlay-folder { display: flex; flex-direction: column; justify-content: center; align-items: center; } 2. When a pill button from the mobile nav is selected, it doesn't change color. However, the pill button from the "about" page shows a change of color when selected. Is there a way to fix this with css? Thank you!!! Link to comment
Solution Beyondspace Posted May 30, 2022 Solution Share Posted May 30, 2022 1 hour ago, LLLes said: Site URL: https://www.lpyluk.com/ Hello, Site password: 09876 I have 2 questions: 1. I used this code to center my mobile nav, but somehow it's still left aligned and I'm not sure how to fix this: /*main menu*/ .Mobile-overlay-nav { position: absolute; top: 50%; left: 60%; transform: translate(-50%,-50%); } /*folder menu*/ .Mobile-overlay-folder { display: flex; flex-direction: column; justify-content: center; align-items: center; } 2. When a pill button from the mobile nav is selected, it doesn't change color. However, the pill button from the "about" page shows a change of color when selected. Is there a way to fix this with css? Thank you!!! Try adding to Home > Design > Custom Css .Mobile-overlay-close { z-index: 999; } .Mobile-overlay-menu { width: 100%; } .Mobile-overlay-nav { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; } Let me know how it works on your site LLLes 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) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) 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 May 30, 2022 Share Posted May 30, 2022 My testing LLLes 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) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) 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
LLLes Posted May 31, 2022 Author Share Posted May 31, 2022 @bangank36 Thank you so much, it looks the same for me. I also added: align-items: center; as the last line and was able to center the text. Thank you so so much 🙂 🙂 Also, is there a way to solve this problem? Quote 2. When a pill button from the mobile nav is selected, it doesn't change color. However, the pill button from the "about" page shows a change of color when selected. Is there a way to fix this with css? Link to comment
Beyondspace Posted May 31, 2022 Share Posted May 31, 2022 1 hour ago, LLLes said: @bangank36 Thank you so much, it looks the same for me. I also added: align-items: center; as the last line and was able to center the text. Thank you so so much 🙂 🙂 Also, is there a way to solve this problem? I check that it is fine. Do you still need help? 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) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) 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
LLLes Posted July 2, 2022 Author Share Posted July 2, 2022 @bangank36 Sorry for the late reply!! For the color change for the buttons, I meant for the mobile navigation. It works on the desktop, but not for the mobile navigation. I did try to edit some code, however, it doesn't seem to work. Thanks for your help! Link to comment
tuanphan Posted July 2, 2022 Share Posted July 2, 2022 1 hour ago, LLLes said: Sorry for the late reply!! For the color change for the buttons, I meant for the mobile navigation. It works on the desktop, but not for the mobile navigation. I did try to edit some code, however, it doesn't seem to work. Thanks for your help! Add to Design > Custom CSS a.Mobile-overlay-nav-item:hover { background-color: black !important; color: white !important; } LLLes 1 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
LLLes Posted July 2, 2022 Author Share Posted July 2, 2022 @tuanphan Thank you so so much! It worked great! 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