On my webpage, I am using an editor called Cleditor jquery plugin.
The default setting allows me to insert images, but the text does not wrap around it. I attempted using vertical-align:top, but it did not resolve the issue:
What CSS property should I apply to the image in order for the text to wrap around it? You can experiment with this on the CLEditor demo page
P.S. I tried float: left and it worked. However, since it is an editor, the user may move the image to the right (in which case it would need to be float: right). How can I detect when to switch the float direction? Therefore, I believe there must be a better solution.