I am facing an issue with centering the contents of a div
Despite trying various methods, I am unable to center the images.
The structure I have is as follows:
<div class="middleSlideContents">
<div class='image'>
<img>
</div>
<div class='image'>
<img>
</div>
<div class='image'>
<img>
</div>
</div>
My objective is to align the contents of
<div class='middleSlideContents'>
to the center, but I am struggling to identify the mistake in my approach.
The <div class='image'>
elements are being generated dynamically and follow this structure.
You can find the rest of the code here: Fiddle Demo
Additionally, the middleSlideContents
div is responsive, so its dimensions vary based on the screen size, which is not reflected in the demo.
I would appreciate any help or insights on whether the structure is incorrect or if I am making a mistake somewhere.