I'm having a very simple problem which I can't overcome. I have a parent div, with 4 images inside, I would like the images to overflow from the parent div (horizontally) but I can't seem to achieve this.
.imgBanner {
border: 1px solid black;
width: 400px;
height: 400px;
display: inline-block;
}
.slideShow {
width: 400px;
}
<div class="slideShow">
<img class="imgBanner">
<img class="imgBanner">
<img class="imgBanner">
<img class="imgBanner">
</div>
This is the code that I am using, but it doesn't seem to overflow, even though I am using display inline-block.
The outcome will be to hide the overflown images, and use JavaScript to create a slideshow.
EDIT: Forgot to add the fiddle. https://jsfiddle.net/pwL2hy7s/
Thanks :)