I am currently working on creating a responsive grid layout consisting of squares that are positioned absolutely within their parent element. The goal is to ensure that when the page is resized, the squares scale proportionally with their parent container without shifting between lines.
For example, let's say I have a 3x3 grid of squares:
----------------
| A | B | C |
----------------
| D | E | F |
----------------
| G | H | I |
----------------
The challenge is to make the entire grid resize fluidly while maintaining the dimensions of each square inside it.
I've attempted a few solutions, but I've encountered difficulties especially with adjusting the heights.
If anyone has any suggestions or ideas on how to achieve this effectively, I would greatly appreciate your input!
Thank you, John