Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi,
I would like to increase the margins of a specific page on mobile as I don't like how close the text is to the edge.
I would like to add left and right margins of 3rem but don't know how to go about doing that without affecting other pages or the header/footer on my website.
Page URL: https://solaque.co.uk/pages/care-guide
If anyone could help with achieving this, it would be greatly appreciated.
Thanks,
Aaron.
Solved! Go to the solution
This is an accepted solution.
TYRy this one.
{% if page.handle == 'care-guide' %}
<style>
@media only screen and (max-width: 749px) {
.section-template--23721731457355__main-padding {
margin: 0 3rem;
}
}
</style>
{% endif %}
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.
TYRy this one.
{% if page.handle == 'care-guide' %}
<style>
@media only screen and (max-width: 749px) {
.section-template--23721731457355__main-padding {
margin: 0 3rem;
}
}
</style>
{% endif %}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you. That worked perfectly.
Welcome! Would you mind hitting 'like' as well? Thanks!