I have been trying to make my carousel in Bootstrap 3.2 responsive. But I just can't seem to get my caption to resize with the image in my carousel. I think it has to do with the "item" class and how it doesn't resize with the browser. I think it might have to do with @media
, but if it does, I don't know what to put there.
Here is my basic HTML carousel slide:
<div class="item">
<img src="http://goo.gl/PK4Kkh" alt="Third Slide">
<div class="carousel-caption">
<h1>Test</h1>
<p>Test</p>
<p><a class="btn btn-lg btn-primary" href="#button3" role="button">Button 3</a></p>
</div> <!-- End of Carousel Caption -->
</div> <!-- End of Item -->
And my CSS:
.carousel
{
height: 720px;
margin-bottom: 0px;
}
.carousel-caption
{
z-index: 10;
}
.carousel .item
{
height: 720px;
background-color: #777;
}
.carousel-inner > .item > img
{
position: absolute;
top: 51px;
left: 0;
min-width: 100%;
}