I am using bootstrap
carousal and having some problem with image height and width. Even though I define it in the img
attribute it still displays a
You can do that with the following styles:
.carousel-inner .item{
width: 600px; /* Any width you want */
height: 500px; /* Any width you want */
}
.carousel-inner .item img{
min-width: 100%;
min-height: 100%;
}
By setting min-*
to the image attributes, we're making sure we have at least 100%
of both width
and height
.
Updated JSFiddle