Responsive Carousel

I've been tweaking this template:
http://startbootstrap.com/template-overviews/modern-business/
Most of it is going well but the carousel isn't behaving quite as I might expect. While the images inside the carousel do seem to be resizing based on browser window dimensions the carousel itself maintains a fixed height. I'd like the carousel to instead maintain an aspect ratio, adjusting its height automatically as needed to ensure the images inside don't get cropped. Is this possible?
LVL 21
Russ SuterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve BinkCommented:
See this link on viewport typography.  Try setting width AND height to ratios of vw.
0
lenamtlCommented:
Hi,
Here is the official doc
http://getbootstrap.com/javascript/#carousel

The css part show height is set to auto so you can change that for min-height or max-height
so if all your image have the correct size
min-height: 100px;

Open in new window

or a give a fix value to the height change auto by a value for example height: 300px;

.carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-responsive, .thumbnail a>img, .thumbnail>img {
    display: block;
    max-width: 100%;
   [b] height: auto;[/b]
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.