1
I need to align the image horizontally and vertically in the center of the Alert, but I’m not getting it. I tried to use a 100 padding (as an example) to demonstrate that the image moves... I would just like to line it up. How do I do this?
<div id="alert-dicas" role="alert" class="alert alert-warning alert-icon alert-dismissible">
<button id="btn-close-dicas" aria-label="Close" class="close" type="button">
<span aria-hidden="true">×</span>
</button>
<i class="icon fa-lightbulb-o" style="font-size:32px; padding:100px;" aria-hidden="true"></i>
<h4>Dica</h4>
<p>
Logo abaixo, você visualizará algumas informações de conexão com o banco de dados. <br />
Para garantir a segurança, nós armazenamos o seu arquivo de Bakup em nosso servidor, mas aconselhamos que você faça download e guarde-o em um local seguro para utilizá-lo quando for preciso.<br />
Lembre-se sempre: Faça backups periódicos, pois se o sistema for atacado por vírus e outras ameaças, seus dados poderão ser perdidos e voce só poderá recuperá-los se tiver um backup recente!
</p>
</div>
If I remove the padding, it looks like this:
which version of bootstrap?
– hugocsl
Bootstrap v3.3.7
– Master JR
You said you want it in the center, but in fact it is to stay where is the correct red square, centering only vertical?
– hugocsl
Yeah. Vertically in the center.
– Master JR
I played a 100 padding for the image to move and go to the image position. If I remove the padding, the image is aligned in the upper corner pasted with the word Hint.
– Master JR
I updated the post... Disregard the padding... I think it will not be useful... Note the second image... This is how it looks... I would just like to lower it and align it vertically in the center and not leave it glued to the text. For this would need a horizontal center alignment.
– Master JR