L
L
Leonid Tyuchkalov2020-06-11 15:21:00
css
Leonid Tyuchkalov, 2020-06-11 15:21:00

Where is this style from?

I use slick slider. I overridden the width in some of its classes, but at startup (when the slider is opened for the first time), the width of 1 photo is 0. If you change the browser width, start scrolling, the width will become the one I set. What is the problem? 5ee221a12eda8385912860.png
In HTML I directly asked, through other classes I applied, everything is the same5ee2222046e14222409874.png

<div class="overlay a6" style="visibility: hidden">
        <div class="main a6-photo" style="visibility: hidden">
            <div class="sl">
                
                <div class="sl__slide" style=" background: url({{ 1|retlink:'6 1' }})
                        no-repeat center center; background-size: cover;">
                </div>
                <div class="sl__slide" style=" background: url({{ 1|retlink:'6 2' }})
                        no-repeat center center; background-size: cover;">
                </div>
                
            </div>
        </div>
    </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Pershin, 2020-06-11
@Kreep74

no need to touch native slick blocks. Insert your custom blocks inside an empty div

<div class="slider">
    <div>
        <!-- А тут свой блок -->
    </div>
    <div>
        <!-- А тут свой блок -->
    </div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question