Shopify themes, liquid, logos, and UX
I want details column text align center for mobile view only. For the desktop I want to keep it left align as shown in the image. The theme I have doesn't have option to differ for mobile and website view. How can I make it centered view for mobile? store: https://techshieldny.com/
Solved! Go to the solution
This is an accepted solution.
Hi @uchiha123
Im not sure which details youll like to center. I just center all. 😅
Try this one.
@media only screen and (max-width: 766px) {
.wrap-product-info {
text-align: center;
}
.pr_price_single.pr_price_single-template--19102647484715__main.mb20.fl.f-aic.f-wrap {
justify-content: center;
}
.fl.f-aic.mb15 {
justify-content: center;
}
}
Result:
I hope it help.
"🌟 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 🙌"
This is an accepted solution.
Hi @uchiha123
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.css
Step 3: Paste the below code at bottom of the file -> Save
@media only screen and (max-width: 766px) {
.pr_form_item {
text-align: center !important;
}
}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hi @uchiha123
Im not sure which details youll like to center. I just center all. 😅
Try this one.
@media only screen and (max-width: 766px) {
.wrap-product-info {
text-align: center;
}
.pr_price_single.pr_price_single-template--19102647484715__main.mb20.fl.f-aic.f-wrap {
justify-content: center;
}
.fl.f-aic.mb15 {
justify-content: center;
}
}
Result:
I hope it help.
"🌟 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 🙌"
This is an accepted solution.
Hi @uchiha123
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.css
Step 3: Paste the below code at bottom of the file -> Save
@media only screen and (max-width: 766px) {
.pr_form_item {
text-align: center !important;
}
}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
User | RANK |
---|---|
208 | |
165 | |
72 | |
56 | |
53 |
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