Twitter Bootstrap: Have carousel images full width and height

Lasse picture Lasse · Apr 15, 2013 · Viewed 72.6k times · Source

this seems as a trivial question but after a couple of hours fiddling with the Twitter Bootstrap carousel in their example (http://twitter.github.io/bootstrap/examples/carousel.html) I resort to SO for some help.

I want the carousel to display the full width (as now) but not with a cropped height. I have tried setting min-height, height etc. to 100% in different containers but with no result. Any two cents?

Answer

Nate Beers picture Nate Beers · Sep 4, 2015

For Bootstrap 3, all you need is:

.carousel img {
    min-width: 100%;
}