I'm facing a challenge with integrating a bootstrap carousel into a website project I'm customizing for a client. Despite my efforts to add photos and captions, the images are aligning in a list format and the captions are stacking on top of each other. Can someone provide guidance on resolving this issue?
Here is a visual representation of the problem:
Stacked photos:
https://i.sstatic.net/Wtsfk.jpg
An example of a caption with <h3>
and <h4>
elements:
https://i.sstatic.net/PPBbv.jpg
Below is the section of code I've utilized from the Bootstrap template:
<section class="container">
<div class="row">
<div class="col-sm-12">
<div id="my-slider" class="carousel slide col-sm-12" data-ride="carousel">
<!-- indicators -->
<ol class="carousel-indicators">
<li data-target="#my-slide" data-slide-to="0" class="active"></li>
<li data-target="#my-slide" data-slide-to="1"></li>
<li data-target="#my-slide" data-slide-to="2"></li>
<li data-target="#my-slide" data-slide-to="3"></li>
</ol>
<!-- wrappers -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="" alt=""/>
<div class="carousel-caption">
<h3>Flutes of the World Concert</h3>
<h5>with Tereasa Payne</h5>
</div>
</div>
<div class="item">
<img id="img" src="img/RPO_Siku.jpg" alt="siku"/>
<div class="carousel-caption">
<h4></h4>
<h5></h5>
</div>
</div>
<div class="item">
<img id="img" src="img/RPO_Nose_Flute_Laughing.jpg" alt=""/>
<div class="carousel-caption">
<h4></h4>
<h5></h5>
</div>
</div>
<div class="item">
<img id="img" src="img/RPO_playing_Toyo.jpg" alt=""/>
<div class="carousel-caption">
<h4></h4>
<h5></h5>
</div>
</div>
<div class="item">
<img src="img/RPO_Native_American_Flute.jpg" alt=""/>
<div class="carousel-caption">
<h4></h4>
<h5></h5>
</div>
</div>
</div>
<!-- controls -->
<a class="left carousel-control" href="#my-slider" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#my-slider" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</section>