1
I have a Javascript and Bootstrap made Carousel. It gets images from a database based on a click rank, but the images are all different sizes and end up interfering with the display of the Carousel, I’ve tried to change sizes in CSS inline everywhere, but I can’t solve.
Follows 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,
});
-
Guy puts up some prints there of how the pictures appear on the carousel, just like the code and the report doesn’t make sense... And which version of Bootstrap is using?
– hugocsl
I skipped the images, and am using the latest version of Bootstrap
– Victor Augusto
You want the images to occupy all the white space up to the blue edges?
– hugocsl
Exactly, I want her to cover the entire div
– Victor Augusto