I am working on a flexible grid for a project. The grid consists of blocks that float on the left and have a width of 25% .
Inside this block are images that are set as 100% * height / width * or 50% * height / width *.
All the images in blocks inserted next to each other, and all the blocks are located next to each other, so it looks like a seamless grid of images.
The problem I get depends on certain browser sizes or when resizing the browser, you get a small gap of 1px between certain blocks.
An example can be seen here: http://dahliacreative.com/responsivegrid/
I think it can be up to the blocks floating, as if you are taking a popup, everything seems fine. I tried using display: inline-block , etc., but could not get anything to work!
Does anyone have an idea to fix this?
source share