[Solved] Tbcarousel Width

I’ve just stumbled across the Yii “Bootstrap” extension (http://www.cniska.net/yii-bootstrap/) and have just started playing around with it. I added the example TbCarousel to my main form.

How can I change the width and height of the TbCarousel that is displayed? I’ve tried using:

‘htmlOptions’ => array(‘style’ => ‘width: 500px;’)

This will change the width, but it results in strange behaviour when the carousel slides (it expands while sliding).

What to do?

Are the images in the carousel all the same original size?

If not have you tried forcing the images to be one size by CSS or the <img> tag width, height attributes? I’m guessing that’s happening because of different images sizes, it may make the divs overflow.

Thanks, that was the problem. I thought images would be resized to fit, but this was not the case.

glad i could help you out.