D
D
Dymok2020-02-20 17:19:22
Layout
Dymok, 2020-02-20 17:19:22

Why does slick-slider make slides infinitely wide?

The task is as follows: the left side with the title should be set to 510px wide, the right side with the slider should take up all the remaining space.
I do it like this:

.feedback {
  padding-top: 130px;

  &__row {
    align-items: center;
  }

  &__left {
    min-width: 510px;
    margin-right: 30px;
    flex: 0 0 510px;
  }

  &__right {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
  }

}


but the right block is stretched further by .row and .container, why?

5e4e9559c4a2a426260955.png

without slider initialization everything is fine:
5e4e9baf5bd12303765966.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2020-02-20
@iamd503

.feedback__right {
width: 100%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question