T
T
towncitybr2021-08-12 12:42:49
css
towncitybr, 2021-08-12 12:42:49

How can I make the width of the items always be the same regardless of the number?

I scroll (via touch) - the slides change
, but in the last row the width gets lost (if there are not enough elements for the number of 3 in a row)

, you can of course add empty divs through the markup
, but maybe there is a better option?

https://jsfiddle.net/jtw8fk60/1/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Pershin, 2021-08-12
@towncitybr

In order for the slider to work normally, you do not need to redo the slides, you need to insert your own blocks inside the slides and twist them there as you like. But if you really need to hang crutches, then indentations must be taken into account in size:

.clients__box {
  outline: 1px solid red;
  margin: 0 40px;
  margin-bottom: 20px;
  width: calc(100% / 3 - 80px) !important;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question