I'm attempting to design a grid that resembles the following:
https://i.sstatic.net/Sf7M9.png
The challenge I'm facing is how to ensure that the column and row names adjust properly with the grid in the center. Currently, this is the code I have: jsfiddle example
t t t t
e e e e
x x x x
t t t t
0 0 0 0 text
0 0 0 0 text
0 0 0 0 text
0 0 0 0 text
I attempted to integrate the text within the matrix, but inconsistencies in element sizes disrupt responsiveness on smaller screens. As it stands, the vertical text outside of the matrix looks somewhat satisfactory, while the horizontal text does not align well.
I'm seeking advice on how to proceed from here.