N
N
Norum2021-08-15 03:06:27
css
Norum, 2021-08-15 03:06:27

How to prevent the active slide from sliding down in owl-carousel?

How to make the active slide not move when the screen is reduced? I understand that since the block with the title is in the wrapper block, and the slider is outside this block, that's why the slider leaves, but can all such ones be eliminated?

This is how it looks at high resolution
61185921bdd0a728500559.jpeg

This is how it looks when the screen is reduced
611859ad8f975218613265.jpeg

The site cb95142.tmweb.ru
The whole code https://jsfiddle.net/c1xdvajn/

<div class="gallery-slider owl-carousel">
            <div class="gal-slide">
                <img src="img/gal-1.jpg" alt="1">
            </div>
            <div class="gal-slide">
                <img src="img/gal-2.jpg" alt="2">
            </div>
            <div class="gal-slide">
                <img src="img/gal-3.jpg" alt="3">
            </div>
            <div class="gal-slide">
                <img src="img/gal-4.jpg" alt="4">
            </div>
            <div class="gal-slide">
                <img src="img/gal-5.jpg" alt="5">
            </div>
            <div class="gal-slide">
                <img src="img/gal-6.jpg" alt="6">
            </div>
        </div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question