Shopify themes, liquid, logos, and UX
Hi
I would like to ensure my content is centred: https://tradewarehouse.co.uk/blogs/decking/how-to-clean-composite-decking.
this includes the title, the image and the main blog container text. The text should remain justified. Please could someone help?
Thanks
Elliot
Hi @elliotmch1
To center the content on your blog page while keeping the text justified, you can apply CSS to the container elements. Here’s how:
→ Add this CSS to your theme’s stylesheet:
/* Center the blog container */
.blog-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: justify;
}
/* Center the title and image */
.blog-container h1,
.blog-container img {
display: block;
margin-left: auto;
margin-right: auto;
}
Important: Make sure the class names match your HTML structure. This will center the title, image, and main text container while keeping the text justified.
If you have other questions, I am willing to answer them more.
Best regards,
Daisy
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025