From 56d64c813e64cfa6ec766df11674a2e248de2dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sun, 10 Jan 2021 17:15:15 +0200 Subject: [PATCH] Maintain aspect ratio correctly by using flexbox, as we depend on it already --- takhta.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/takhta.html b/takhta.html index 810797c..406735e 100644 --- a/takhta.html +++ b/takhta.html @@ -12,9 +12,9 @@ font-size: 200%; } td div { - display: table-cell; - text-align: center; - vertical-align: middle; + display: flex; + justify-content: center; + align-items: center; } #board tbody :nth-child(odd) :nth-child(even) { background-color: #fff;