johnbacud Posted September 18 Share Posted September 18 Site URL: https://mis.haus/ In smaller desktop browser sizes, my navigation bar's navigation links overflow into a second row. What CSS can I add so that the hamburger menu for mobile activates before the navigation links overflow? Thank you to everyone who helps in advance. https://mis.haus/ Link to comment
Solution tuanphan Posted September 20 Solution Share Posted September 20 You can use a CSS code like this @media screen and (max-width:1200px) and (min-width:900px) { .header-burger { display: flex !important } .header--menu-open .header-menu { opacity: 1 !important; visibility: visible !important } .header-nav,.header-actions { visibility: hidden !important } } johnbacud 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
johnbacud Posted September 20 Author Share Posted September 20 5 hours ago, tuanphan said: You can use a CSS code like this @media screen and (max-width:1200px) and (min-width:900px) { .header-burger { display: flex !important } .header--menu-open .header-menu { opacity: 1 !important; visibility: visible !important } .header-nav,.header-actions { visibility: hidden !important } } Awesome! This worked almost right out of the box. I just had to play around with the min-width and set it to (min-width:500px) instead. Thanks, tuanphan! You're one of the best helpers on this forum. tuanphan 1 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