"after before"
Bootstrap 4.1.1 Snippet by SANTANU CHOWDHURY

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <br /><br /> <div class="container"> <div class="row text-center"> <div class="col-md-12 text-center"> <h2>EXPERIENCE</h2> </div> </div> </div>
h2{ position: relative; font-size: 24px; font-family: 'Lato', sans-serif; color: #000; } h2:before { content: " "; display: block; background: #000; height: 1px; width: 100px; margin-top: 8px; margin: 0 auto; margin-right: 18px; display: inline-block; position: relative; top: -7px; } h2:after { content: " "; display: block; background: #000; height: 1px; width: 100px; margin-top: 8px; margin: 0 auto; margin-left: 18px; display: inline-block; position: relative; top: -7px; }

Related: See More


Questions / Comments: