Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Framework Basics Prototyping with Bootstrap Building a Carousel

carousel's size changing when you change the slide??

I noticed Guil changed one of his silde' content to make it shorter so it has the same height with the other two slides. So my question is how to make my carousel a fixed height even my slides have different content with different height?

2 Answers

Here's what I did: 1. Set the slider class's min-height to 329px.

  1. Set the item class's height to 233px. All done! Hope this works.
Devin Scheu
Devin Scheu
66,191 Points

Use the max-height property. That should work.