Maintain aspect ratio correctly by using flexbox, as we depend on it already

This commit is contained in:
Juhani Krekelä 2021-01-10 17:15:15 +02:00
parent b5dcd4d5f9
commit 56d64c813e
1 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@
font-size: 200%; font-size: 200%;
} }
td div { td div {
display: table-cell; display: flex;
text-align: center; justify-content: center;
vertical-align: middle; align-items: center;
} }
#board tbody :nth-child(odd) :nth-child(even) { #board tbody :nth-child(odd) :nth-child(even) {
background-color: #fff; background-color: #fff;