Shopify themes, liquid, logos, and UX
Right now the image is aligned to the left, and I would like to align both the rich text and the image to the middle of the page, keep the text aligned to the left.
Solved! Go to the solution
This is an accepted solution.
Hi, @mayish
You can try this code
1. Go to Online Store-> Theme->Edit code
2. Asset-> theme.css ->paste the below code at the bottom of the file.
.AspectRatio {
margin-left: auto !important;
margin-right: 0 !important;
}
.FeatureText__ContentWrapper {
padding-left: 5px !important;
}
.FeatureText__Content {
margin-right: 0 !important;
}
This is an accepted solution.
plz add this code to the bottom of theme.css file
.FeatureText__ContentWrapper {
padding-left: 40px !important;
}
@media(max-width:786px){
.AspectRatio {
margin-left: auto !important;
margin-right: auto !important;
}}
Plz share your store URL and password
This is an accepted solution.
Hi, @mayish
You can try this code
1. Go to Online Store-> Theme->Edit code
2. Asset-> theme.css ->paste the below code at the bottom of the file.
.AspectRatio {
margin-left: auto !important;
margin-right: 0 !important;
}
.FeatureText__ContentWrapper {
padding-left: 5px !important;
}
.FeatureText__Content {
margin-right: 0 !important;
}
Thank you so much for you help!! It worked!
two more questions:
1- how do I add a 20px space between the text and the image?
2- On the mobile, how do I center the image? Right now its aligned to the right?
This is an accepted solution.
plz add this code to the bottom of theme.css file
.FeatureText__ContentWrapper {
padding-left: 40px !important;
}
@media(max-width:786px){
.AspectRatio {
margin-left: auto !important;
margin-right: auto !important;
}}
Thank you so much, Ahsan!
Hey there, same issue here but the code you provided doesn't change anything. I tried it both in theme.css and in personnalised css but to no effect. Would you have any idea why?
Thanks a lot!!
Plz share your store URL so i can provide you with exact code
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025