I am hoping for a pure CSS solution for this:
I have text with <img>
elements. These images can be either in a row by themselves OR embedded in the midst of the text rows. Images that are on their own rows should center to the middle. But the mid text images should stay just as they are, with the text just to the left/right of it.
For automation purposes the two cases must have the same css styling. The text must not be styled in any way nor wrapped in any element. Example:
In the middle <img src="tiny_ant.jpg"> of the text. Whereas the following is
<img src="huge_elephant.jpg">
centered on its own row.
How can this be styled to happen?
Thank you!