"Título com traço horizontal nas laterais do texto"
Bootstrap 3.3.0 Snippet by EdwardAmagasaki

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div id="tit"> <div id="txt"><h3>TÍTULO</h3></div> </div> </div> </div>
#tit { position: relative; } #tit #txt { position: relative; width: 200px; background-color: #fff; margin: 0 auto; text-align: center; z-index: 2; } #tit:before { position: absolute; top: 58%; content: ""; display: block; width: 100%; border-bottom: 1px solid #ccc; z-index: 1; }

Related: See More


Questions / Comments: