I want to utilize CSS grid to create a unique table design. The layout can be described as follows (refer to the image for visualization): https://i.sstatic.net/vj8iF.jpg
Here's what I need: the header cell should have a size of 2x / 2y, while each header row's cell is x / 2y and each header column cell is 2x / y. The internal table cell size (highlighted in red) should be x / y.
All elements except for the Header cell need to be dynamic. For instance, the data could result in 7 rows and 3 columns.
The challenge lies in making this table fully dynamic. Here's my attempt for the header column:
grid-template-rows: repeat(auto-fill, 145px);
And for the header rows, I've included:
grid-template-columns: repeat(auto-fill, 145px);
Despite these settings, something seems to be missing. How can I ensure that the table adjusts dynamically based on the data provided and adheres to the specified cell size limitations?