From 8e3b3ed0c0b45847297d4091bb5b1d8a32b3615d Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 11 Nov 2025 14:47:07 +0100 Subject: [PATCH] responsive headings font size --- home.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.css b/home.css index 39f0bad..6ae74a3 100644 --- a/home.css +++ b/home.css @@ -17,14 +17,14 @@ main h1 { text-align: center; margin: auto; width: 100%; - font-size: 8em; + font-size: clamp(4em, 14vw, 8em); margin-top: 5%; } main h2 { margin: 4% auto; text-align: center; - font-size: 4em; + font-size: clamp(2.5em, 5vw, 4em); } main p {