In my HTML table, I have numbers incrementing from 0 in each cell, arranged from left to right and top to bottom.
I have set the width
and height
of the cells using CSS (with dimensions of 40px width and 25px height).
As the table grows larger, the numbers inside it also increase significantly (e.g., reaching values like 1266356). This results in the cells becoming wider than intended in the CSS, causing the entire table to expand.
Instead, I am looking for a way to reduce the font size of the numbers so that the cell width remains at 40px.
Is there a solution for achieving this using CSS, Javascript, or jQuery?