I've been facing a roadblock in my coding project since yesterday afternoon. I'm trying to transform a classic unordered list menu into a tiled "gallery" within a 12 column grid, with fluid square tiles.
When the squares are floated, the first square takes up more space than it should, causing layout issues at certain resolutions. I've tried adjusting the width and padding of the first square, but it hasn't fully resolved the problem.
Switching to displaying the squares inline-block eliminates the resizing issue, but presents a new challenge of aligning the squares correctly on the same line.
If anyone has insight on fixing the resizing issue when floating or getting the squares to flow properly with display inline-block, please share your expertise.
-- Edit --
Additional info:
For smaller screens, I plan to adjust the number of columns and flow them under the first square to address the resizing issue. The amount of list items is dynamic, so I need a solution that can adapt to changes in the markup.