Why the text appears on the line with I tried to make a white background for the content like this? I want a solution like this https://ibb.co/tXn4tHf
but this is the problem: https://ibb.co/Q8jtZwk
I want a solution to this problem
.section-title {
color: #aaa;
font-size: 15px;
font-weight: 600;
margin: 30px 0;
overflow: hidden;
position: relative;
text-align: center;
text-transform: uppercase;
width: 100%
}
.section-title:after,
.section-title:before {
background-color: #aaa;
content: '';
display: inline-block;
height: 1px;
position: relative;
vertical-align: middle;
width: 50%
}
.section-title:before {
left: .5em;
margin-right: -50%
}
.section-title:after {
right: .5em;
margin-left: -50%
}
<h4 class="section-title">جميع قوائمك</h4>