From 55f6824258eb2177b1b0ce32a22cc6dcda45bfbf Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 22 Sep 2025 17:12:33 +0200 Subject: smooth scrolling when going to divs --- styles.css | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'styles.css') diff --git a/styles.css b/styles.css index c6fbe92..8a9dccd 100644 --- a/styles.css +++ b/styles.css @@ -16,6 +16,11 @@ } /* Base background and cursor light effect */ +html { + scroll-behavior: smooth; + scroll-padding-top: 80px; /* Adjust this value based on your header height */ +} + html, body { min-height: 100%; margin: 0; -- cgit v1.2.3