Hi please can someone help me fix the padding size of the policy pages in the mobile view. I have the studio theme and I added a code in the theme.liquid file. In desktop, the padding of the policy pages looks great but in the mobile view it looks wrong. All the text is in the centre. Please can someone give me the code to fix it? Here’s the code i added to the theme.liquid file below. thank you
.shopify-policy__container {
max-width: 70% !important;
padding-bottom: 50px !important;
}
2 Likes
Hi @RubyB11
Can I take a look the page myself, would you mind to share your store URL? Or you can pm anytime. Thanks!
You can put this css code on your base.css file
Hello @RubyB11 . You can replace your above code with my following code
@media only screen and (max-width: 750px) {
.shopify-policy__container {
max-width: 90% !important;
padding-bottom: 50px !important;
}
}
@media only screen and (min-width: 750px) {
.shopify-policy__container {
max-width: 70% !important;
padding-bottom: 50px !important;
}
}
- Here is the result you will achieve:
- Please press ‘Like’ and mark it as ‘Solution’ if you find it helpful. Thank you.