How can I fix these heading tabs to show neatly on one line both pc and mobile view if possible
Thanks
How can I fix these heading tabs to show neatly on one line both pc and mobile view if possible
Thanks
Hi @LOFTROBE
If you want it like this, add this CSS:
.header {
max-width: 100%!important;
}
Hello @LOFTROBE
The navigation links added are more and it is not possible to adjust in single line with the existing design for header.
If you try the desktop logo position to be ‘top left’ then the navigation will get down with full width area like below
Thanks
Hello @LOFTROBE
Go to online store ---------> themes --------------> actions ------> edit code------->base.css —> line number 138
search this code.
@media screen and (min-width: 990px) {
.header:not(.drawer-menu).page-width {
padding-left: 5rem;
padding-right: 5rem;
}
and replace with this code.
@media screen and (min-width: 990px) {
.header:not(.drawer-menu).page-width {
padding-left: 5rem;
padding-right: 5rem;
max-width: 100%;
}
}
and the result will be
If this was helpful, hit the like button and mark the job as completed.
Thanks
Hello @LOFTROBE ,
Please add the below code at the bottom of the theme.liquid file before tag and save.
I hope the code will help you to display Navigation Menu items in 1 row.
After applying code, output will be like this -:
Thank you.
@media screen and (min-width: 990px) {
.header:not(.drawer-menu).page-width {
max-width: 100% !important;
}
}
Go to ‘Online Store’ → Themes → Edit Code
In the assets folder locate the file ‘base.css’
At the bottom of the file add this cod
/* Header Preventing wrap CSS Start */
.header{
max-width: 100%;
}
@media (max-width: 1047px){
.header__menu-item.list-menu__item.link{
font-size: 6px;
}
}
@media (max-width: 1097px){
.header__menu-item.list-menu__item.link{
font-size: 7px;
}
}
@media (max-width: 1147px){
.header__menu-item.list-menu__item.link{
font-size: 8px;
}
}
@media (max-width: 1197px){
.header__menu-item.list-menu__item.link{
font-size: 9px;
}
}
@media (max-width: 1247px){
.header__menu-item.list-menu__item.link{
font-size: 10px;
}
}
@media (max-width: 1297px){
.header__menu-item.list-menu__item.link{
font-size: 11px;
}
}
@media (max-width: 1347px){
.header__menu-item.list-menu__item.link{
font-size: 12px;
}
}
@media (max-width: 1397px){
.header__menu-item.list-menu__item.link{
font-size: 13px;
}
}
/* Header Preventing wrap CSS End */
This works, but it might be difficult to read the options because, in order to fit everything on the same line, the font size needs to be smaller.