All things Shopify and commerce
Hello,
I would like to align my collection text to the left in desktop version and centre it for the mobile version. Please see photos attached... I am talking about the text "Masks" in this case. On another note - if someone is able to help me line up the margins in desktop version that would be much appreciated. I have got my page settings to full width but for some reason the product grid is only taking about 60% of the page for products.
Any help would be much appreciated.
Hi @ellacoker please share your store url
@ellacoker you want like this
Mobile screen view:
<style>
.collection-hero__title {
text-align: left; /* Align text to the left by default */
}
@media (max-width: 768px) { /* Adjust breakpoint if needed */
.collection-hero__title {
text-align: center; /* Align text to the center on mobile screens */
}
}
</style>
.
Thanks for your quick reply.
The images you sent are exactly how i want it. I tried putting it in themes.liquid but this didnt work so I put it in component.collection.hero.css and that seems to fix the text alignment problem for both desktop and mobile. however, the items still do not come full width to the page on desktop. how can i fix this issue now?
Thanks again,
Ella.
On my screen it looks well as you say
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025