I need to put a gallery on my website that shows only the first picture of every category. I'm also using FlexGrid as my layout has three columns.
I have a foreach loop which creates an <a>
tag for every image, in order to have access to all the pictures opening the gallery.
What I did then is to hide all the <a>
for image no. 2, 3, 4, etc.
The problem now is that LostGrid seems to still remember that I have all those <a>
tag, even if I made them display: none
, and the layout goes crazy.
I keep thinking about it but I really can't figure out what a solution could be.
Can anyone help me? Thanks!