image inline with text

Is there a way to make an image aligned similarly to what MS Word does when selecting “In line with Text”. See example below:

I want to make a list composed of an image, a number. The list can be pretty long, spread on several rows and the number of items in the list varies.

Basically I want my images to follow the previous text element. I could make some complicated calculations with the width, Y and X of the previous text element but I’m looking for something easier.

Well, I ended up storing the most right point of the previous thumbnail, and set that (with a margin) as X of the corresponding text label. Then I do the same with the right-hand side of the label and the next thumbnail.

Not posting any code as it’s pretty specific and would look complex.

Well, I ended up storing the most right point of the previous thumbnail, and set that (with a margin) as X of the corresponding text label. Then I do the same with the right-hand side of the label and the next thumbnail.

Not posting any code as it’s pretty specific and would look complex.