I am using Bootstrap 4 Beta 2 version to do a carousel. The code looks like below:
I had to include .carousel for it to work properly.
.carousel .carousel-indicators li {
width: 10px;
height: 10px;
border-radius: 100%;
}
Yes, I think you need to write custom CSS for doing lines into dots.
You just need to override two properties (width
and height
) and add a new one, border-radius
, to .carousel-indicators li
.
Make width
and height
values equal eg: 10px
each and give a border-radius
of 100%
.
.carousel-indicators li {
width: 10px;
height: 10px;
border-radius: 100%;
}
You just need to change the icon path in case you have one, using the inspect element you can get the class name. I used Mozilla to get the class name and then I used two svg icons for changing the default icons to custom icons.
.carousel-control-prev-icon {
background-image: url("images/carousel/back.svg");
}
.carousel-control-next-icon {
background-image: url("images/carousel/next.svg");
}