From 210b456cf18ea876a950e0ec9f83254e0483674d Mon Sep 17 00:00:00 2001 From: 8BitBiscotti Date: Fri, 13 Dec 2024 13:30:29 +0100 Subject: [PATCH] fixed bg aligment --- style.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/style.css b/style.css index a80d6a4..842fd4a 100644 --- a/style.css +++ b/style.css @@ -25,14 +25,12 @@ body { transform: translate(-50%, -50%); } #mainDiv { - top: 0%; - left: 0%; height: 100vh; } .bgGradient { image-rendering: pixelated; - min-width: 100vw; - min-height: 100vh; + width: calc(256px * var(--pxDensity)); + height: calc(164px * var(--pxDensity)); aspect-ratio: auto; position: absolute; top: round(50%, var(--pxDensityPx));