Archived topic
Horizontal lines on each side of headline text
4 replies · Started by Mike on March 16, 2021
How do I create horizontal lines on the side of the headline block text?
Here is an example https://www.bain.com/vector-digital/vc-as-a-service/ ..Find the titles Why Bain, What to Expect, Team, etc
Thank you!
Found the solution:
h2 {
display: flex;
flex-direction: row;
}
h2:before, h2:after{
content: "";
flex: 1 1;
border-bottom: 1px solid;
margin: auto;
}
h2:before {
margin-right: 10px
}
h2:after {
margin-left: 10px
}
Hi Mike,
Sorry I missed this topic!
CSS is required and your solution is good :)
No worries Leo, I always receive great support here. I appreciate you guys.
Thank you for your support!