Lauret Posted September 29, 2022 Share Posted September 29, 2022 Site URL: http://laurabustaffa.com I've customised the appearance of items in my mobile menu. The aim was to have all items appear at the top of the screen rather than in the middle and the button after them rather than at the bottom of the screen. Like this: But on iPhone safari the button disappears: I've botched this code digging through past responses: /*move nav items to the top on mobile*/ [data-folder] .header-menu-nav-folder-content { justify-content: flex-start; } /*move button up on mobile nav*/ header#header .header-menu-cta { position: relative; top: -600px; } Maybe -600px is too much? I guess a measure relative to the menu items rather than absolute might be better? but I'm not a developer... 🙂 Thanks! Link to comment
tuanphan Posted September 29, 2022 Share Posted September 29, 2022 Try changing second code to header#header .header-menu-cta { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); } 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
Lauret Posted September 29, 2022 Author Share Posted September 29, 2022 Perfect, thanks a lot! Link to comment
Ziggy Posted September 29, 2022 Share Posted September 29, 2022 You could add this to change the minimum height of the navigation folder and this will bring the button up to underneath the nav items, but also allow you to add more without adjusting in pixels. .header-menu-nav-folder { min-height:5% important; } Hope this helps! tuanphan 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Lauret Posted September 29, 2022 Author Share Posted September 29, 2022 I see - thanks a lot! 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