I'm trying to achieve:
with the :before
and :after
pseudo-elements. Can anyone help me out?
i:before {
content: "";
background: blue;
display: block;
width: 50px;
height: 1px;
}
i:after {
content: "";
background: blue;
display: block;
width: 50px;
height: 1px;
}
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<div>
<h3>About Us</h3>
<i class="fa fa-comments-o"></i>
</div>