It is a standard Bootstrap carousel and I want to change the size of the img so that it fits the div size. Whenever the window size is changed the div becomes larger than the image and that just doesn't seem responsive and comes off untidy. here's my html code for one of the slides in carousel
<!--wrapper for slides -->
<!--Item one -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="../Images/bloodDonation.jpg" alt="Blood Donation" />
<div class="carousel-caption">
<h1>Donate Blood </h1>
</div>
</div>
This is what the div looks like when window is resized
My idea was to get current div size through jquery and pass it on to the img tag so that it;s forever responsive but haven't got around to the technique so please help. Thanks.