Picture about the bootstrap slide

Asked

Viewed 105 times

0

Colleagues.

I have a slide made in bootstrap, but I would like to put an image on all the slides, IE, as the slide passes, the image continue on them, without moving. The code I have is:

<header id="myCarousel" class="carousel slide">
 <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>
            <li data-target="#myCarousel" data-slide-to="2"></li>
        </ol>
<div class="carousel-inner">
<div class="item active">
                <div class="fill" style="background-image:url('http://placehold.it/1900x1080&text=Slide One');"></div>
                <div class="carousel-caption">
                    <h2>Caption 1</h2>
                </div>
            </div>
            <div class="item">
                <div class="fill" style="background-image:url('http://placehold.it/1900x1080&text=Slide Two');"></div>
                <div class="carousel-caption">
                    <h2>Caption 2</h2>
                </div>
            </div>
            <div class="item">
                <div class="fill" style="background-image:url('http://placehold.it/1900x1080&text=Slide Three');"></div>
                <div class="carousel-caption">
                    <h2>Caption 3</h2>
                </div>
            </div>
        </div>

That’s possible?

1 answer

2


You can place the image outside the myCarousel class (just below the closing of the tag), creating another div with the class of botstrap "text-center" to align.

Example: http://jsfiddle.net/spz5yj6r/

  • Hello Denis. Perfect, but how would I put it on the left side? I tried to put text-left, but it got off the slide, stuck in the left corner of the screen.

  • 1

    I got Denis. Decreases the width and it worked. Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.