How to change mobile Css only for rich text heading and text?

How to change mobile Css only for rich text heading and text?

NeoCityCreative
Visitor
2 0 0

Hello All,

 

Can anyone please give us some advice on what parameters we should be changing for mobile only to make our text centered on any device?

The code below is what we have in the custom CSS section within the page. I have tried media only etc, but nothing seems to change on mobile.

@media with the code below makes it align but I am unable to publish for some reason.

 

Thank you!

 

Mobile: 

438115699_1120975875898364_3628659747961832928_n.jpg

Website:

Website.PNG

 

Custom CSS with home page:

code.PNG

Replies 3 (3)

sumanthjois1996
Shopify Partner
21 0 4

Try adding this

 

 

@media (max-width: 798px) {
 
.rich-text__heading {
left: auto !important;
width: auto !important;
}

.rich-text__text  {
left: auto !important;
width: auto !important;
}
}

 

 

 
PageCrafter - Build Beautiful Product Descriptions that Improve Conversion

DM me your product page and I will help you improve it for free.

NeoCityCreative
Visitor
2 0 0
It worked perfectly, thank you.
So simple and easy, you are the best!
sumanthjois1996
Shopify Partner
21 0 4

Anytime 🙂

PageCrafter - Build Beautiful Product Descriptions that Improve Conversion

DM me your product page and I will help you improve it for free.