Bootstrap 3 default Carousel: How to move indicators down and outside of slide container?

后端 未结 5 1749
野性不改
野性不改 2021-02-01 02:02

What\'s an easy (and clean) way to move Bootstrap 3\'s carousel indicators down and outside of the slide container so it\'s not overlayed on the photos? See image below on where

相关标签:
5条回答
  • 2021-02-01 02:33

    Customize your item class div

     <div class="item">
         <div class="col-mid-1"> &nbsp; </div>
             <div class="col-md-10"> your content </div> 
                 <!-- Note total should not be greater than 12 that is 1 + 10 + 1 = 12--> 
                 <div class="col-mid-1"> &nbsp; </div>
     </div>
    

    this worked for me when i don't want the icons on the content div

    0 讨论(0)
  • 2021-02-01 02:34

    You can set border to 0px like this:

    .carousel-indicators li{
      border: 0px;
    }
    
    0 讨论(0)
  • 2021-02-01 02:46

    You can write with:

    .carousel-indicators {
      display:none;
    }
    
    0 讨论(0)
  • 2021-02-01 02:47

    You can push them below the slider like this...

    .carousel-indicators {
      bottom:-50px;
    }
    

    Leave space below the carousel so that the pushed indicators don't interfere with content below the slider..

    .carousel-inner {
       margin-bottom:50px;
    }
    

    Demo

    0 讨论(0)
  • 2021-02-01 02:55

    you can simply add the bootstrap class hidden after the indicator class like this:

    <ol class="carousel-indicators hidden">
    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>
    
    0 讨论(0)
提交回复
热议问题