Jump to content

Filtered Photo Gallery- Format Issue

Recommended Posts

I was following the filtered photo gallery tutorial below:


I have an issue with the photos bunching up on the right side & not shifting to a new column. 


This is the HTML in the link below:


What can I add to make sure the formatting is right?


Link to post
Share on other sites

That is I imagine, because the first row containers are not of a equal height, as the overlapping column container slide left because of float, it will come up against one of those higher container protruding down more than the rest and butt up its right bottom corner edge and stop.

To prevent this you need to make sure all column class  heights are the same, so this does not happen, a flexible solution would be to use display: flex; this will make each column the same height to the highest on each row.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...