https://i.stack.imgur.com/9lumC.png
Is there a way to create an hr line that looks exactly like the image above? I attempted using
clip-path: polygon(0 20%, 0 100%, 100% 100%, 100% 0%, 5% 0)
but it didn't work
.divider {
color:#1D0000;
display: flex;
text-transform: uppercase;
align-items: center;
margin: 1em -1em;
}
.divider:before,
.divider:after {
content: "";
flex: 1;
border:1px solid #1D0000;
margin: 0 1em;
clip-path: polygon(0 20%, 0 100%, 100% 100%, 100% 0%, 5% 0)
}
<h2 class="divider">Testing</h2>