I have the following structure:
HTML
<div class="contatoTopo">
<div class="buscaConteudoCent">
<div class="buscaFontEncontraTit">Nenhum resultado encontrado para:</div>
<div class="buscaFontEncontra">"teste"</div>
</div>
</div>
CSS
.contatoTopo{
background-image: url('../imagens/contatoBG.jpg');
background-repeat: repeat;
height: 176px;
line-height: 176px;
margin: auto;
width: 100%;
}
.buscaConteudoCent {
width: 960px;
height: 100px;
margin: auto;
position: absolute;
left: 50%;
margin-left: -480px;
}
.buscaFontEncontraTit {
font-family: 'ubuntulight_italic';
font-size: 30px;
color: white;
text-align: center;
margin: auto;
float: left;
}
.buscaFontEncontra {
color: #FFFFFF;
font-family: 'ubuntubold_italic';
font-size: 30px;
text-align: center;
float: left;
}
What is happening, he is not centralizing the two divs with the texts:
The word 'test' is an example, it will come from the system and may be larger, so I can not centralize.
How to proceed?