H
H
HelpSophie2017-07-31 18:42:05
JavaScript
HelpSophie, 2017-07-31 18:42:05

Why is my slick slider not full width of the parent?

There is a site. It's ancient to say the least.
I would like to connect slick to it. It seems that all the old scripts made friends with the new jq through migrate. There are no errors. But slick stretched somewhere to the side ad infinitum.
What I did wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2017-07-31
@HelpSophie

Set this block to some maximum width, for example 760px, otherwise you have max-width: 100%

.banner {
    text-align: center;
    vertical-align: top;
    padding-top: 16px;
    padding-bottom: 25px;
    max-width: 760px;
    width: 100%;
}

and everything works for you
333fc31f266e4f28843b5f15d51f9c17.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question