I am attempting to design a slideshow with small images evenly distributed horizontally on each slide. I came across an intriguing technique on css-tricks.com and a very straightforward working example, but I have not been successful in replicating it.
Below is the HTML code for a slide:
<div class="item active">
<div>
<a href="#"><img src="http://placehold.it/100x100"></a>
<a href="#"><img src="http://placehold.it/100x100"></a>
<a href="#"><img src="http://placehold.it/100x100"></a>
<a href="#"><img src="http://placehold.it/100x100"></a>
<a href="#"><img src="http://placehold.it/100x100"></a>
<a href="#"><img src="http://placehold.it/100x100"></a>
<a href="#"><img src="http://placehold.it/100x100"></a>
</div>
</div>
Here is the CSS following the mentioned technique:
div.sites .carousel-inner .item div {
font-size: 0.1px;
text-align: justify;
}
div.sites .carousel-inner .item div:after {
content: "";
width: 100%;
display: inline-block;
}
div.sites .carousel-inner .item div a {
display: inline-block;
}
You can view the functioning code at the bottom of this site, under the title "OTROS SITIOS"
EDIT: My girlfriend tested out my code in CodePen and it worked smoothly. I suspect there may be some global style interfering with it.
Thank you for your assistance