From 17ab8eca8bd3ae0341a3703a651d4f38ca88b995 Mon Sep 17 00:00:00 2001 From: derjo Date: Tue, 30 Dec 2025 23:46:12 +0100 Subject: [PATCH] Buttontext centered and overflow hidden --- main.css | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/main.css b/main.css index 5982113..dd7ff38 100644 --- a/main.css +++ b/main.css @@ -1,5 +1,5 @@ body { - margin: 0; + margin: 0; } .center { position: absolute; @@ -9,22 +9,26 @@ body { width: 10%; height: 8%; } +#clickMeWrapper { + overflow: hidden; +} #clickMeText { position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%) scale(0.5, 0.5); pointer-events: none; - text-wrap: nowrap; user-select: none; -webkit-user-select: none; + width: 100%; + height: 100%; + text-align: center; + align-content: center; + font-size: 50%; } #critImg { - opacity: 0; - position: absolute; - height: 100%; - width: 100%; - object-fit: cover; + opacity: 0; + position: absolute; + height: 100%; + width: 100%; + object-fit: cover; } #contrib { visibility: hidden;