Jakub Kopyś Jakub Kopyś - 1 year ago 109
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?

Answer Source

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/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download