When using one row, the script works successfully. Here is an example of the code:
html :
<div class="testimonial-group">
<div class="row">
<div class="col-md-4">1</div>
<div class="col-md-4">2</div>
<div class="col-md-4">3</div>
<div class="col-md-4">4</div>
<div class="col-md-4">5</div>
<div class="col-md-4">6</div>
<div class="col-md-4">7</div>
<div class="col-md-4">8</div>
<div class="col-md-4">9</div>
</div>
</div>
css :
.testimonial-group > .row {
overflow-x: auto;
flex-wrap: nowrap;
}
The resulting display is shown in the image: https://i.sstatic.net/nnsRp.png
However, when using two rows, the script does not work as expected and two scrollbars appear. Here is an example of the code:
html :
<div class="row">
<div class="col-md-4">1</div>
<div class="col-md-4">2</div>
<div class="col-md-4">3</div>
<div class="col-md-4">4</div>
<div class="col-md-4">5</div>
<div class="col-md-4">6</div>
<div class="col-md-4">7</div>
<div class="col-md-4">8</div>
<div class="col-md-4">9</div>
</div>
<div class="row">
<div class="col-md-4">1</div>
<div class="col-md-4">2</div>
<div class="col-md-4">3</div>
<div class="col-md-4">4</div>
<div class="col-md-4">5</div>
<div class="col-md-4">6</div>
<div class="col-md-4">7</div>
<div class="col-md-4">8</div>
<div class="col-md-4">9</div>
</div>
</div>
css :
.testimonial-group > .row {
overflow-x: auto;
flex-wrap: nowrap;
}
The resulting display is shown in the image: https://i.sstatic.net/lkkXX.png
To resolve the issue of having two scrollbars and maintain only one scrollbar, you can try adjusting the CSS settings. How can I do it?