JSFiddle - React, Tailwind, and code Playground

HTML

<div class="news_title">
<div>
<h3><span>NEWS</span></h3>
<span>Types</span>
</div>
</div>

CSS

.news_title > div{
  overflow: hidden;
  text-align: center;
}

.news_title > div:before,
.news_title > div:after {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 50%;
}
.news_title h3:after{
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 10px;
  margin-left: 5px;
  box-sizing: border-box;
}

.news_title > div:before{
  right: 0.5em;
  margin-left: -50%;
}

.news_title > div:after{
  left: 0.5em;
  margin-right: -50%;
  }
  
  .news_title > div > h3{
    display: inline;
  }