I've checked many SO posts, looked at various vertical align tricks (-50%, table-cell etc) but I still cant figure this one out.
<div class="main">
<img src="https://upload.wikimedia.org/wikipedia/commons/3/35/Information_icon.svg"/>
<div class="text"><span class="inner-text">this is some text</span></div>
</div>
I need to have the image and text div absolutely positioned and offset slightly top and bottom.
I can position the image fine, but aligning the text presents an issue. How can I vertically and horizontally align the text?
No flex please.