Home › Forums › Support › How to add a line after h2 This topic has 4 replies, 2 voices, and was last updated 3 years, 5 months ago by Leo. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts November 11, 2022 at 10:42 am #2411694 Sabbir Hi, I want to add a line after h2 like this site: https://www.adventureinyou.com/ how can I do this? November 11, 2022 at 10:53 am #2411704 LeoStaff Customer Support Hi there, 1. Add liner CSS class to GB’s headline block: https://docs.generateblocks.com/article/headline-overview/#advanced 2. Add this CSS: /*add and adjust the lines*/ h2.liner:after { content: ''; border-top: 6px solid; margin: 0 20px 0 0; flex: 1 0 20px; color: #fcd900; } /*add spacing between heading and lines*/ h2.liner:after { margin: 0 0 0 20px; } Adding CSS: https://docs.generatepress.com/article/adding-css/ Let me know if this helps 🙂 November 11, 2022 at 11:01 pm #2412132 Sabbir It’s not working. November 12, 2022 at 12:28 am #2412178 Sabbir This is working for me /*center the heading and lines*/ h2.liner { display: flex; width: 100%; justify-content: center; align-items: center; text-align: left; text-transform: uppercase; margin-top: 40px; } /*add and adjust the lines*/ h2.liner:after { content: ''; border-top: 6px solid; margin: 0 20px 0 0; flex: 1 0 20px; color: #fcd900; } /*add spacing between heading and lines*/ h2.liner:after { margin: 0 0 0 20px; } November 12, 2022 at 10:39 am #2412963 LeoStaff Customer Support Glad to hear 🙂 Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In