I’ve got an image which I want to use inline with some text, but I need it to match the text height. I know it’s possible to something like <img src="img.jpg" height=16> or even <img src="img.jpg" height="100%">, but the former does not scale with text size and the latter seems to make it the size of the div, not the text height. Can anyone help?
Example HTML:
<body>
This is a test <img src="img.jpg">
</body>
Did you try this giving the image height as 1em?
Check out the fiddle here: http://jsfiddle.net/yAr7z/