S
S
Shinigamius2020-02-17 19:52:37
css
Shinigamius, 2020-02-17 19:52:37

Why is the content behind the arrows (bootstrap)?

5e4ac4b2d8c51089543698.jpeg
here is the code:
https://codepen.io/shikigami/pen/OJVNYGz

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
e3drive, 2020-02-20
@e3drive

So no positioning properties are set on the element, so it's pushed to the left.
As an example
.carousel-item {
text-align: center;
}
And so for the navigation elements in the properties there is a given block length
.carousel-control-next, .carousel-control-prev {
...
width: 15%;
...
}
this gives the offset
To understand the principle, example:
.carousel-control-next, .carousel-control-prev {
width: 10px;
}
.carousel-item {
margin-left: 50px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question