Prueba lo siguiente:
HTML
<div class="in-middle">
<span class="tittle-pad-size">
What you get?
</span>
</div>
<div class="www">
<p>Course for all!</p>
</div>
CSS
.in-middle {
width: 100%;
height: 20px;
border-bottom: 1px solid black;
text-align: center;
}
.tittle-pad-size {
font-size: 40px;
background-color: #ffffff;
padding: 0 10px;
}
<div class="in-middle">
<span class="tittle-pad-size">What you get?</span>
</div>
<div class="www">
<p>Course for all!</p>
</div>
.in-middle {
width: 100%; height: 20px;
border-bottom: 1px solid black;
text-align: center;
}
.tittle-pad-size{
font-size: 40px;
background-color: #F3F5F6;
padding: 0 10px;
}