I have an aesthetic problem with the bootstrap 4 carousel that I am implementing. When I open it, it shows me a dark line to the right of the container, the carousel css is as follows:
/* Carousel base class */
.carousel {
margin-bottom: 4rem;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
bottom: 3rem;
z-index: 10;
}
/* Declare heights because of positioning of img element */
.carousel-item {
background-color: white;
}
What I get is more or less this:
I managed to capture the moment when the image slides from one to another and you can see that between the images there is that dark line. I want to remove it and I don't know how to do it. If someone can give me a hand, I would greatly appreciate it... THANK YOU !!!
I think you have some css overriding your carousel. Like
background-color
for example.And the buttons need
href
equal toid
ofdiv
carousel. For example:<div id="gallery-carousel" class="carousel slide" data-ride="carousel">
and<a class="carousel-control-prev" href="#gallery-carousel" role="button" data-slide="prev" >
.Here is a Demo with white background and buttons.