Skip to content

Instantly share code, notes, and snippets.

@desenmeng
Created February 29, 2016 09:52
Show Gist options
  • Save desenmeng/0bf415bef5c861c2ad02 to your computer and use it in GitHub Desktop.
Save desenmeng/0bf415bef5c861c2ad02 to your computer and use it in GitHub Desktop.
Vertically align text next to an image
<!-- moved "vertical-align:middle" style from span to img -->
<div>
<img style="vertical-align:middle" src="https://placehold.it/60x60">
<span style="">Works.</span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment