How to create an arbitrary sized matrix in css grid
I want to create an arbitrary n x n matrix using CSS Grid. My HTML structure is: <div class="matrix"> <div class="matrix-corner"></div> <div class="matrix-header-row">Header1</div> <div class="matrix-header-row">Header2</div> <div class="matrix-header-col">Header1</div> <div class="matrix-header-col">Header2</div> <div class="matrix-row"> <div class="matrix-cell">100%</div> <div class="matrix-cell">50%</div> </div> <div class="matrix-row"> <div class="matrix-cell">50%</div>…