D
D
Dima Pautov2016-12-07 18:01:33
css
Dima Pautov, 2016-12-07 18:01:33

Why does the slider in the flex container not correctly calculate the width?

Good evening. There is such a problem. I've been suffering for a month now.
For all projects that I have to implement, I use slick slider . So, if, for example, this slider is placed in a flex container, then the slider stretches wildly. For some reason, he blows his head and he incorrectly considers the width. How can this be dealt with?
https://jsfiddle.net/e78j3y55/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Yurchenko, 2016-12-07
@karakara

Try to add

* {
  min-height: 0;
  min-width: 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question