I have a carousel made by Javascript and Bootstrap. It receives images from a database based on a clicks rank, but the images are all different sizes and end up interfering with the display of the carrousel, I already tried changing sizes in inline CSS all over, but I can not solve it.
Follow my code:
<div class="row col-md-6 col-md-offset-3">
<div id="carousel" style="width:100%;">
<?php foreach($ofertas as $indice => $teste): ?>
<img src="<?= Yii::getAlias('@web').$teste['ofe_imagem']?>" style="!important;">
<?php endforeach ?>
</div>
<script>
$('#carousel').slick({
autoplay: true,
autoplaySpeed: 1000,
arrows: true,
nextArrow:'<button style="position"class="right carousel-control"></button>',
prevArrow:'<button style="z-index:5"class="left carousel-control"></button>',
slidesToShow: 1,
infinite: true,
adaptativeHeight: true,
});
-