Home › Forums › Support › Page Hero center heading This topic has 8 replies, 2 voices, and was last updated 4 years, 6 months ago by Leo. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts October 17, 2019 at 9:44 am #1037388 Paul Hey, Using VH as height for the page-hero class… Having troubles getting the text to not center. Let me know if you know a fix. Thanks π October 17, 2019 at 9:45 am #1037390 Paul .page-hero { background-image: linear-gradient(180deg, #2d5488 0%, #3ab3d7 100%); min-height: 21vh; color: #fff; } .inside-page-hero { position: relative; vertical-align: middle; } .page-hero h1 { font-weight: 600; } October 17, 2019 at 9:48 am #1037391 LeoStaff Customer Support Hi there, So you don’t want the text to center? What’s your horizontal alignment setting here? https://docs.generatepress.com/article/how-to-create-a-page-hero/#step-5-position-the-content Let me know π October 17, 2019 at 9:49 am #1037395 Paul Hey, Yea i want it centered.. also centered vertically … But I am using VH as the container height.. October 17, 2019 at 9:51 am #1037399 LeoStaff Customer Support Edit your CSS to this: .page-hero { background-image: linear-gradient(180deg, #2d5488 0%, #3ab3d7 100%); min-height: 21vh; color: #fff; display: flex; align-items: center; } October 17, 2019 at 9:52 am #1037403 Paul Holy smoke π Thank you very much! October 17, 2019 at 9:53 am #1037404 LeoStaff Customer Support Flexbox is super useful for things like this if you are interested: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ Glad I could help π October 17, 2019 at 9:54 am #1037405 Paul Thanks ! October 17, 2019 at 9:56 am #1037409 LeoStaff Customer Support No problem π Author Posts Viewing 9 posts - 1 through 9 (of 9 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In