Jakub Kopyś Jakub Kopyś - 3 months ago 4x
CSS Question

CSS align text and img

I am not sure how to describe it - I want to make comments looking like facebook ones:
enter image description here

But I am not sure how to align text like this - any suggestions?


You can do it like this:

div{width: 200px;}
img{vertical-align: top;}
img, div{display: inline-block}

See fiddle https://jsfiddle.net/cvnrwo13/2/