I am attempting to achieve a horizontal scrolling effect for a series of images, similar to what is shown in this example. I am facing an issue where the images do not align in a single row and instead move to the next line. How can I create horizontal scrolling for images without using any plugins?
Below is my current CSS setup:
.admin-shop-images {
list-style: none;
overflow-x: scroll;
width: 100%;
}
.admin-shop-images li {
background-color: #f3efea;
margin-right: 25px;
width: 105px;
height: 105px;
float: left;
display: inline-block;
}
.admin-shop-images li a {
display: block;
height: 100%;
width: 100%;
background-position: center center;
background-size: cover;
}
.admin-shop-images li:last-child {
margin-right: 0;
}