I have a php loop that builds a list of images:
<?php foreach($imageResult as $im):?>
<img class="contentImage" src="<?php echo $im['url'] ?>" style="max-width: 150px; height: auto;">
<a href="deleteImage.php?imageID=<?php echo $im['ID']?>">Delete</a>
<?php endforeach?>
And this builds them 5 to a row (which is how I want to keep them as opposed to 1 per row stacked on top of each other.
The issue is my Delete link shows to the right of each image, running into the next row sometimes.
Is there a better way that I can get my link to display centered on each image?