I need to align two images so that they are centered, with a description below.
I tried something like:
<style>
.thumb {
width: 140px;
height: 140px;
position: relative;
float: left;
}
.thumb img{
position: relative;
margin: auto;
margin-left: 560px;
}
.desc{
margin-left: 582px;
}
</style>
<div class="thumb">
<a href="pdf_clientes.php" target="_blank">
<img src="imagens/printer.png">
</a>
<div class="desc"><span style="color:white">Imprimir Relatório</span></div>
</div>
<div class="thumb">
<a href="pdf_clientes.php" target="_blank">
<img src="imagens/search.png">
</a>
<div class="desc"><span style="color:white">Filtrar Resultados</span></div>
</div>
The result is working as expected, but I believe that is not the correct way to do it, because I believe that in monitors of other resolutions the result will be different. How can I do it smarter?