I am attempting to align text, generated dynamically, on the left side of some images that are positioned next to each other. The image on the far left should also be aligned to the left.
.inline-attachments {
display:inline;
vertical-align:top;
}
<div class="content">text top left above inline images
<div class="inline-attachments"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR2duxRXndQoYlHxjCw2U6rQTOJPYvFqx6AzA&usqp=CAU" /></div>
<div class="inline-attachments"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR2duxRXndQoYlHxjCw2U6rQTOJPYvFqx6AzA&usqp=CAU" /></div>
text bottom left below inline images</div>
If simply enclosing the inline div in paragraph tags is not feasible, what CSS solution can achieve this alignment?
Many thanks to Bert W for the helpful solution utilizing JS to accommodate various numbers and sizes of images (refer to his 3rd comment).