1
I have a rotating banner according to the code below. For now it has only one image:
<section id="main-slider" class="no-margin">
<div class="carousel slide">
<div class="carousel-inner">
<div class="item active" style="background-image: url(images/slider/bg1.png)">
<div class="container">
<div class="row slide-margin">
<div class="col-sm-5 pull-right">
<div class="carousel-content" style="text-align: center">
<h2 class="animation animated-item-1"><span style="color: #FFE805">Aqui</span> <br><span>é o título</span></h2>
<div align="center">
<h3 class="animation animated-item-1"><span style="color: #FFE805">Aqui subtítulo</span></h3>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
But in mobile versions, the banner image is too big. How could I make it so that inside the CSS I could include this image in desktop access and in mobile mode appear another image? I’m wearing the Bootstrap 3.
Hello Lipespry. Right. I used your code, but when I take the style reference from that line
<div class="item active" style="background-image: url(images/slider/bg1.png)">
, leaving so:<div class="item active">
, the image does not appear.– user24136
It probably does not appear because it has no content. The image displayed in this div is a background, not a content. Try to put something inside this div to try. Ex:
– LipESprY
Perfect. I changed it
.foo
for#main-slider .carousel .item.active
and it worked. Thank you very much.– user24136