2
Hello, I wanted to know how to exchange these indicators, instead of buttons for texts, follow the code below:
<div id="myCarousel" class="carousel slide" data-interval="3000" data-ride="carousel">
<!-- Carousel indicators -->
<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>
CSS
.carousel-indicators {
position: absolute;
bottom: 10px;
left: 50%;
z-index: 15;
width: 60%;
margin-left: -30%;
padding-left: 0;
list-style: none;
text-align: center;
}
.carousel-indicators li {
display: inline-block;
width: 100px;
height: 100px;
margin: 1px;
border: 1px solid #fff;
border-radius: 10px;
cursor: pointer;
background-color: red;
background-color: blue;
}
.carousel-indicators .active {
margin: 0;
width: 120px;
height: 120px;
background-color: red;
}
Have you tried to remove the attributes that draw the button and put text inside the
li
?– Lucas
removed, and added, all right, vlw.
– michel