A user seeks to modify text formatting in their Shopify Dawn theme, specifically wanting to:
Increase the width of a text box under “Applications of high resolution mapping”
Justify text in both this section and the “What is an Orthomosaic?” section above it
Align both sections to the same width
Initial Solution Attempt:
One responder suggested adding CSS code to theme.liquid to set .rich-text__blocks.left to 100% width and removing <br> tags. However, this caused the CSS code itself to display as visible text on the page.
Working Solution:
Another user provided CSS code to add to base.css that:
Hides <br> tags within rich text elements
Sets .rich-text__blocks to 100% max-width on desktop screens
This successfully resolved the width issue.
Remaining Issue:
The original poster still needs help justifying the text in the “What is an Orthomosaic?” paragraph. While text-align: justify worked for the lower section, they cannot determine the correct selector for the upper paragraph.
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
Hello, I am looking for something I thought would be simple but after trying for 2 hours in the CSS file and elsewhere I am at my wit’s end.
I want to simply make the text under “Applications of high resolution mapping” wider and justified. I would also like to justify the text in the section above, under the “What is an Orthomosaic?” section. Ideally the text of the lower section would justify to the same point as the above section. I have included a screenshot to illustrate this.
I’ve tried adding snippets of code to the rich-text.liquid, and the base.css but NOTHING has worked (yes I removed everything that didn’t work after). Please help!
Hi Moeed, thanks for the swift response. So I added that section of code to the bottom of my theme.liquid, as seen in my screenshot, and removed one of the from the theme. Removing the break made the text go to the edge of the box, but didn’t effect the box width. Also, for some reason the text “.rich-text__blocks.left { max-width: 100% !important; }” appeared in the bottom corner of the page now… Not sure what I am doing wrong, clearly you did it on your end but I don’t see what there is to mess up here.
Any idea how to justify the text in the above paragraph? I put “text-align: justify;” in the section we just made the width larger, and it worked, but I can’t figure out how to justify the paragraph above about orthomosaics…