From b26fcb1b30461ae1078779a7693693a70e456b9d Mon Sep 17 00:00:00 2001 From: zepp Date: Fri, 13 Dec 2024 15:03:38 -0500 Subject: [PATCH] adjust main and body height, and overflow behavior --- style/style.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/style/style.css b/style/style.css index 975a104..e2e6e56 100644 --- a/style/style.css +++ b/style/style.css @@ -14,11 +14,14 @@ html { } body { + height: 100vh; + width: auto; background-color: var(--body-background-color); display: grid; grid-template-columns: 15vw 60vw; grid-template-rows: 5vh 2fr 5vh; justify-content: center; + overflow: hidden; } main, nav { @@ -28,8 +31,9 @@ main, nav { main { background-color: var(--background-color); - height: auto; + height: 100%; width: 60vw; + overflow: scroll; grid-column: 2/3; grid-row: 2/3; } @@ -74,10 +78,7 @@ nav { border-image-source: linear-gradient(to bottom, #FCF434, #FFFFFF, #9C59D1, #2C2C2C); } -/* section { - grid-column: 2/3; - grid-row: 2/3; width: 55vw; } -*/ +