Home › Forums › Support › How to centre align text within container? This topic has 5 replies, 2 voices, and was last updated 2 months ago by Leo. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts June 12, 2022 at 9:36 am #2251162 CAZ Can’t see the option to do this, help appreciated. I want the text within the container to be center-aligned. June 12, 2022 at 12:19 pm #2251265 LeoStaff Customer Support Hi there, Any chance you can link us to the page in question? You can use the private information field: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information Let me know ๐ Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ June 12, 2022 at 12:26 pm #2251275 CAZ Sure, here’s an example (below) placeholder page, I want the title and body text to be centre aligned ideally! June 12, 2022 at 12:30 pm #2251279 LeoStaff Customer Support If you want the content on that page to be centered then using this CSS is the easiest way: body.page-id-8 .inside-article { text-align: center; } Adding CSS: https://docs.generatepress.com/article/adding-css/ It will only work in this page only as we are targeting .page-id-8 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ June 12, 2022 at 12:33 pm #2251283 CAZ Okay – so no way to do this so every single page has text centred? I really wanted to set all H1s and H2s to be centred! Thank you for such a speedy reply ๐ June 12, 2022 at 2:27 pm #2251351 LeoStaff Customer Support It’s very tough for me to provide a solution without knowing the exact requirement. I really wanted to set all H1s and H2s to be centred! In that case, try this CSS: .entry-content h1, .entry-content h2 { text-align: center; } Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In