E
E
endgus2016-04-28 17:03:36
Slider
endgus, 2016-04-28 17:03:36

How to make bootstrap carousel full width centered?

There is a full width carousel on bootstrap.
c6fcd26542f540509701212b167ce5be.png
But if you turn on the page on screens larger than 1400px (slide width), then the toggle buttons stretch across the entire width, and the image remains on the left.
d5a8438603434709900771a2a6c62793.png
How to make the carousel to be in the center of the rest of the content?
Slider Code

<!-- Slider -->
<div id="carousel" class="carousel slide">
    <!--Slide IMG-->
    <div class="carousel-inner">
        <div class="item active">
            <img src="img/slider.jpg" alt="slider-woman">
            <div class="carousel-caption font-slider">
                <div class="content">
                    <div class="row">
                        <div class="col-md-6 col-sm-8 col-xs-10">
                            <span>FiarFashion<br>LOREM IPSUM DOLOR</span>
                            <a href="#"> <img src="img/button-slider.png"></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="item">
            <img src="img/slider.jpg" alt="slider-woman"> <!--/IMG/-->
        </div>
        <div class="item">
            <img src="img/slider.jpg" alt="slider-woman"> <!--/IMG/-->
        </div>
    </div>
    <!--Slide button -->
    <a href="#carousel" class="left carousel-control" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left"></span>
    </a>
    <a href="#carousel" class="right carousel-control" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right"></span>
    </a>
</div>

Wrapping in a container helps, but the carousel is created with indents, but it needs to be full width.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2016-04-28
@hummingbird

Look for an example here - getbootstrap.com/getting-started/#examples-custom (right on this page below)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question