Home › Forums › Support › header between two lines This topic has 3 replies, 2 voices, and was last updated 3 years, 11 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts April 21, 2019 at 10:27 am #875067 Melissa I know this isn’t exactly theme support, but I’m hoping you can help me with displaying my content. I’d like to show a small header between two horizontal lines. Here’s an example: https://paste.pics/580b40d44a57c2da4acb3f8d989f83a5 Any ideas? Thank you! GP Premium 1.7.8 April 21, 2019 at 1:01 pm #875120 DavidStaff Customer Support Hi there, try this. Add this CSS: .border-heading { display: flex; justify-content: center; align-items: center; } .border-heading:before, .border-heading:after { content: ''; height: 3px; /* Change border thickness */ background-color: red; /* Change border color */ flex: 0 0 20%; /* 20% is the border width */ margin: 0 2em; } Then to add a border heading you would use this HTML: <h2 class="border-heading">My heading with borders</h2> Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ April 22, 2019 at 7:26 am #875693 Melissa Perfect! Thanks!! April 22, 2019 at 7:28 am #875696 DavidStaff Customer Support Glad to be of help. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In