I'm looking to include a card within a carousel, but I'm struggling with getting the card element centered inside the carousel. Here's my current code:
<div class="container">
<div class="row">
<div class="col-sm-12">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner text-center">
<div class="carousel-item active row justify-content-center">
<div class="col-md-6 d-flex justify-content-center">
<div class="card">
<div class="card-body">
<h5 class="card-title">ID</h5>
<input type="number" class="form-control" placeholder="0000" aria-label="Chain ID"
aria-describedby="basic-addon1">
<a routerLink="eth" class="btn btn-primary">Get Started</a>
</div>
</div>
</div>
</div>
<div class="carousel-item">
<p>2</p>
</div>
<div class="carousel-item">
<p>3</p>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
Current output screenshot can be seen here. How can I modify my code to center the card inside the carousel?
Other