From f6ba1be736b0118de0fab190cbcb4b4f6b61b241 Mon Sep 17 00:00:00 2001 From: Marko D Date: Thu, 19 Dec 2024 16:23:25 +0100 Subject: [PATCH] Center the whole content to make layout nicer. --- index.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 196d848..8520e79 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,8 @@ body { display: flex; + align-items: center; + justify-content: center; flex-direction: column; min-height: 100vh; text-align: center; @@ -30,12 +32,7 @@ } main { - flex: 1; padding: 20px; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; line-height: 1.5em; }