3
I’m trying to make a DIV for a subscription with a photo (24x24) next.
I want to center this text vertically, according to the size of the photo. I tried to use vertical-align: middle
, but it didn’t seem to have any effect.
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>
Yeah, I got to see this answer, but it hadn’t connected me that the alignment was on the wrong tag.
– Jéf Bueno