<h1>This is a heading</h1>
<style>
h1 {
position: relative;
font-size: 30px;
z-index: 1;
overflow: hidden;
text-align: center;
}
h1:before, h1:after {
position: absolute;
top: 51%;
overflow: hidden;
width: 50%;
height: 2px;
content: ‘a0’;
background-color: #000;
}
h1:before {
margin-left: -50%;
text-align: right;
}
</style>
Question and answer is powered by AnsPress.io