1
I am developing a site where all pages have one with a title that varies in size, and in this same title has two lines, one on each side of the text that has to adjust to the right size.
I know it sounds confusing, but to explain it better follow an image for you to understand:
My code:
.promo{
display:block;
float:left;
width:100%;
height:200px;
background-image:url(http://s0.ejesa.ig.com.br/portal/images/2012-07/1.461037.jpg);
background-size:cover;
background-position:center center;
}
h1{
width:100%;
text-align:center;
}
h1.tit_header{
width:70%;
margin:80px 15% 10px 15%;
color:#FFF;
}
.line_01, .line_02, .line_03{
display:block;
width: 100%;
clear:both;
font-size:1em;
}
.line_01{
display:block;
float:left;
width:80%;
margin:0 10%;
text-align:center;
}
.text_tit{
display:block;
float:left;
width:33%;
}
.linhaAzul_box{
display:block;
float:left;
width:33%;
height:40px;
}
.linha{
display:block;
float:left;
width:100%;
height:5px;
background-color:#fff;
margin-top:18px;
}
<div class="promo">
<h1 class="tit_header">
<span class="line_01">
<span class="linhaAzul_box"><span class="linha"></span></span>
<span class="text_tit">Titulo Grande de Mais</span>
<span class="linhaAzul_box"><span class="linha"></span></span>
</span>
</h1>
</div>
It is not clear what you are looking for... can you explain better? is this what you want? -> http://jsfiddle.net/j9nv4v3w/3/
– Sergio
Almost that, only instead of the text adjusting is the white line that should be larger or less.
– Marcelo Ronkenoli
Marcelo gave an answer, that’s what I was looking for?
– Sergio