Hi,
I tried various codes, but I can’t fix my collection description to be centered. Can anyone help ?
A user is trying to center the collection description text on their Shopify store using the Dawn theme but hasn’t been successful with various CSS attempts.
Proposed Solutions:
Multiple community members offered CSS-based fixes, all targeting the .collection-hero__description class:
base.css with max-width: 100% !important within a media query for screens 750px and widertheme.liquid file above the </body> tagbase.css or theme.css with centering properties including margin: 0 auto !importantStatus:
The discussion remains open with no confirmation from the original poster about which solution worked. All responses provide similar CSS approaches with slight variations in implementation method and specific properties used.
Hi,
I tried various codes, but I can’t fix my collection description to be centered. Can anyone help ?
Can you try add this to base.css
@media screen and (min-width: 750px) {
.collection-hero__title+.collection-hero__description {
max-width: 100% !important;
}
}
Hey @Daniel19901
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
@media screen and (min-width: 750px) {
collection-hero__description {
max-width: 100% !important;
}
}
Hello @Daniel19901 ,
Follow these steps:
Go to Online Store → Theme → Edit code
Open your base.css file and paste the following code at the bottom:
.collection-hero__description.rte {
margin: 0 auto !important;
}
Thanks