I have the Twitter Bootstrap carousel working quite well for the most part but my photos are of different widths and the caption on the bottom matches the widest width so when I have photos with less width the caption stays black for the previous width and looks a little unprofessional. My code is as follows and I was wondering if there is any way to fix this problem so the width always matches the photo.\[code\]<div class="row"> <div class="span8 offset2"> <div id="myCarousel" class="carousel slide"> <div class="carousel-inner"> <!-- here I loop through and add a bunch of photos --> {% for photo in record_photos %} <div class="active item"> <a href="http://stackoverflow.com/url"><img src="http://stackoverflow.com/questions/13757407/some-src"></a> <div class="carousel-caption"> <h3 class="center-it">some caption</h3> </div> </div> {% endfor %} </div> <a class="carousel-control left" href="http://stackoverflow.com/questions/13757407/#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="http://stackoverflow.com/questions/13757407/#myCarousel" data-slide="next">›</a> </div> </div> </div>\[/code\]