I'm trying to make a DIV for a signature with a photo (24x24) next to it.
I want to center this text vertically, according to the size of the photo. I tried to use vertical-align: middle
, but it did not seem to work.
body {
padding: 50px;
font: 14px Verdana, Helvetica, Arial, sans-serif;
background: #444;
color: #FFF;
}
.assinatura {
vertical-align: middle;
line-height: 24px;
}
<footer style="float: right;">
<div class="assinatura">
Este texto eu quero no centro
<img src="https://i.stack.imgur.com/yA3Te.png?s=24&g=1" />
</div>
</footer>