All things Shopify and commerce
Need help to set and relocate Account Icon on mobile view to be on top of the Cart Icon in vertical alignment, as shown in attached image file. Wondering whether this is possible?
Anyone can help?
My website is www.mobilecablestore.com
Greatly appreciated. Thank you!
Hello @DavidLeong ,
Follow these steps:
1. Go to Online Store -> Theme -> Edit code
2. Open your base.css file and paste the following code below:
@media screen and (max-width: 768px) {
.header__icons {
flex-direction: column;
}
.header__icon--cart{
margin: 0;
padding: 0;
}
}
Thanks
I have edited the margin to 2 instead, to make it slightly right as below:
@media screen and (max-width: 768px) { .header__icons { flex-direction: column; } .header__icon--cart{ margin: 0; padding: 0; } }
Possible to help me put an additional code to make the Account icon slightly right as well to align with the Cart icon. Thank you!
Sorry i mean i edited it to this
@media screen and (max-width: 768px) {
.header__icons {
flex-direction: column;
}
.header__icon--cart{
margin: 2;
padding: 0;
}
}
@media screen and (max-width: 768px) {
.header__icons {
flex-direction: column;
}
.header__icon--cart{
margin: 2px;
padding: 0;
}
}
@media screen and (max-width: 768px) {
.header__icons {
flex-direction: column;
}
.header__icon--cart{
margin: 2;
padding: 0;
}
}
I applied the above, but the Account icon for mobile view is still not in-line with the Cart Icon
Seems you are not checking the solution properly.
Its
margin: 2px;
not
margin: 2;
My apology for the confusion. How can i make both icon to align to the red line on the right as per screenshot?
User | RANK |
---|---|
41 | |
39 | |
24 | |
22 | |
22 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023