I'd like to vertically center this text next to the image to get a result like this:
.container {
position: absolute;
width: 50%;
}
.span {
vertical-align:middle;
display: inline;
}
<p>
<div class="container">
<img style="width: 100%" src="http://placehold.it/150x50"/>
<span class="span">should be vertically centered next to image</span>
</div>
</p>
How to edit my code to center this text next to the ABSOLUTE container?
Any help would be very appreciated. Thanks.