Currently, I am utilizing Onsen-ui along with angularjs. My issue lies in attempting to center images within a carousel, as they consistently align to the left. Below is the code snippet that I am working with:
<ons-carousel direction="horizontal" style="height: 62.5%; background-color: blue;" swipeable auto-scroll overscrollable id="carousel">
<ons-carousel-item style="margin: auto">
<img src="images/carousel1.jpg" style="margin: auto; height: 100%">
</ons-carousel-item >
<ons-carousel-item style="margin: auto">
<img src="images/carousel2.jpg" style="height: 100%; margin: auto">
</ons-carousel-item>
<ons-carousel-item style="margin: auto">
<img src="images/carousel3.jpg" style="height: 100%; margin: auto">
</ons-carousel-item>
If anyone has advice or solutions on how to rectify this alignment issue, your input would be greatly appreciated. Thank you!