Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello
I was curious, my mobile layout for my navigation menu is too large for mobile and forces itself to become two rows. How can I install code or steps to decrease the menu font size for this on my website.
The website is aromabarn.com and you can see the navigation menu in the header
Hello,
You could set a media query between the problematic device widths to edit the nav item padding and font size and add it to the bottom of your base.css file:
@media only screen and (min-width: 990px) and (max-width: 1130px) {
.header__menu-item {
padding: 0.5rem;
font-size: 1.2rem;
}
}
Hope that helps!
~ Matt
Your navigation issue is common on mobile layouts! Adjusting the font size via CSS should help. For inspiration, Check out Sonic Drive-in latest website designed.
How can i do this specifically to the mobile lay out and leave the desktop size. Please attach the CSS to adjust this if possible and steps it would really help in this case
Add this to the bottom of your base.css file!
@media only screen and (min-width: 990px) and (max-width: 1130px) {
.header__menu-item {
padding: 0.5rem;
font-size: 1.2rem;
}
}
Try adding this to the bottom of your base.css file.
@media only screen and (min-width: 990px) and (max-width: 1130px) {
.header__menu-item {
padding: 0.5rem;
font-size: 1.2rem;
}
}
Hope that helps!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024