2
I have the following code snippet :
var images = [];
for (var i = 0; i < actions.length; i++) {
for (var j = 0; j < actions[i].Images.length; j++) {
var imagem = new Image();
imagem.Description = actions[i].Images[j].Description;
imagem.Url = actions[i].Images[j].Url;
images.push(imagem);
}
}
$('#carousel-imagens').append($("#imagesTemplate").tmpl(images));
$('#carousel-imagens').addClass("item");
The array
var images stores the URL
of various images I have. But as I pass this array
pro carousel
, he places the images one under the other. I would like them to be placed beside, which I must do ?
Hence who will be in charge of this is your CSS.
– Diego Souza
bootstrap mounts the layout
– Raphael Prado de Oliveira
Are you using some Bootstrap plugin to build Carousel? Take a look at this tutorial, see if it helps you: W3schools
– Douglas Garrido
This same example I am following. but the images are not next to each other as in the example. are getting one under the other
– Raphael Prado de Oliveira