<div id="wrap">
<!-- section -->
<div class="section">
<div class="center">
<h1><span>WE ARE</span></h1>
</div>
</div>
<!--/section -->
</div>
html,
body {
margin: 0;
padding: 0;
font-family: sans-serif;
font-size: 16px;
line-height: 1.4;
color: #555;
background: #fff;
}
* {
box-sizing: border-box;
}
#wrap {
position: relative;
}
.section {
padding: 40px;
}
.center {
width: 100%;
max-width: 980px;
margin: auto;
}
h1 {
display: flex;
align-items: center;
justify-content: space-between;
&::before, &::after {
content: '';
display: block;
background-color: #000;
height: 2px;
flex: 1 1 auto;
}
span {
margin: 0 10px;
}
}
View Compiled
This Pen doesn't use any external CSS resources.