https://i.sstatic.net/K4QDt.png
I created these buttons for a tic-tac-toe game as a way to improve my React skills. I'm aiming to have all the boxes form a perfect square shape. However, the box size changes when text is added.
While I'm working on this, I'm also wondering how I can adjust the font size to fill up a certain percentage of the box, like 80%.
Here's my CSS:
.grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
min-height: 200px;
max-width: 60%;
margin-left: auto;
margin-right: auto;
}
.cell {
font-size: 2rem;
box-sizing: border-box;
}
.cell:nth-child(3n) {
}
#playGrid {
width: 40vw;
height: 30vw;
}