I'm currently working with a div that displays images dynamically loaded from a database, ranging from 1 to 5 images. The number of images may vary each time, and I need assistance in centering these images inside the div regardless of their quantity. Please HELP!!!!!!!!
<div class="sliderImg" style="width:975px; height:306px;text-align:center;">
<img id="img1" runat="server" visible="false" width="195" height="306" alt="slider">
<img id="img2" runat="server" visible="false" width="195" height="306" alt="slider">
<img id="img3" runat="server" visible="false" width="195" height="306" alt="slider">
<img id="img4" runat="server" visible="false" width="195" height="306" alt="slider">
<img id="img4" runat="server" visible="false" width="195" height="306" alt="slider">
</div>
Using code behind, I adjust their visibility based on certain conditions.