The page currently fits four images in the horizontal direction, if more images are added in this direction you can scroll to see them. The images should also remain the same size no matter how many other images are on the page.
The html setup is as follows:
<div className="wrapper">
<img className="item" />
<img className="item" />
<img className="item" />
<img className="item" />
.
.
.
</div>
The expected behaviour of the page as images are dynamically added to the page in order of the number written.
Three images:
[1 2 3]
[]
Five images: (Note: Screen is now filled to the max in horizontal direction):
[1 2 3 4]
[5]
Nine images:
[1 2 3 4 9]
[5 6 7 8]
Thirteen images:
[1 2 3 4 9 10 11 12]
[5 6 7 8 13]
Fixing it for three and five images was not a problem, but when trying to achieve the intended behaviour for nine images it starts becoming hard... Would appreciate all help. I preferably would not want to change the html, unless it makes it much easier to fix.