From bc8ac3683ca5bab624f9ce831d595480f7d7f3db Mon Sep 17 00:00:00 2001 From: Thom Breugelmans Date: Fri, 29 Nov 2024 16:48:39 +0100 Subject: [PATCH] fix: h2 not staying within allotted space --- static/stylesheets/style.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/stylesheets/style.css b/static/stylesheets/style.css index d811c6d..27ce6c8 100644 --- a/static/stylesheets/style.css +++ b/static/stylesheets/style.css @@ -47,9 +47,10 @@ font-size: 4.5vh; } h2 { position: absolute; -width: 50%; +/*width: 50%;*/ height: 3vh; -left: 25%; +left: 50%; +transform: translateX(-50%); top: 0; margin: 0; background-color: rgba(50, 30, 30, 0.8);