malul
May 6, 2023, 9:57pm
1
Hi everyone my header icons on the mobile are scattered in a row and I would like to pin them to the sides.
I have tried many css orders left and right and margin and even when I succeeded on my phone, on the Pro Max it sits messy,
please help me out if someone know how to fix this Photos for understand:
store: berez.org.il
pass: zadoko8
Thank you!
1 Like
Hi @malul ,
Please use the code below to fix your menu
From your Admin page, go to Online store > Themes > click the three dots > Edit code
Find the Asset folder, and open the style.css file
Add the code below at the very end of the file
@media only screen and (max-width: 481px) {
.ltn__header-options {
display: grid;
grid-template-columns: repeat(10, 1fr);
}
.mini-cart-icon {
grid-area: 1/10;
}
.mini-cart-icon a {
display: flex;
flex-direction: row-reverse;
align-items: center;
}
.header-search-wrap {
grid-area: 1/9;
}
}
Result here:
1 Like
malul
May 7, 2023, 8:51am
3
Hi @made4Uo ! Thank you so much , that is really helpfull. but It still dosent effect iphone pro max
iPhone 14 Pro max are 430 width when I check in chrome custom devices emulation the icons are good up until 425 width, what should we change for it effect also for the iphone pro max?
Thank you!!!
malul
May 8, 2023, 8:04am
5
Please do yo know how to fix it also with iphonw pro max?
Hi,
Sorry. I cannot reproduce the issue.
However, you try replacing the code I provided with the code below and see if it works.
@media only screen and (max-width: 750px) {
.ltn__header-options {
display: grid;
grid-template-columns: repeat(10, 1fr);
}
.mini-cart-icon {
grid-area: 1/10;
}
.mini-cart-icon a {
display: flex;
flex-direction: row-reverse;
align-items: center;
}
.header-search-wrap {
grid-area: 1/9;
}
}
1 Like