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.
Plz share your store URL and password
Plz share your store URL so i can provide you with exact code
1 Like
http://mayaishshalom.myshopify.com
(maya)
Thank you!
Hi, @mayish
You can try this code
- Go to Online Store-> Theme->Edit code
- 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;
}
1 Like
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?
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;
}}
1 Like
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!!
