From 8f969e4577126d090b7f8161a39f875a69161d20 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 24 Oct 2025 14:04:53 +0100 Subject: [PATCH] Use "rem" to set the base font size in CSS This means that the font size will vary based on the user's selected default font size even in the absence of zooming. --- bedstead.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bedstead.css b/bedstead.css index 446d1ea..73a416f 100644 --- a/bedstead.css +++ b/bedstead.css @@ -10,7 +10,7 @@ /* Use Bedstead for everything. */ body { font-family: Bedstead; - font-size: 20px; + font-size: 1.25rem; /* 20px for normal default font size of 16px. */ font-synthesis: none; margin: 8px; margin-left: 32px; @@ -85,7 +85,7 @@ input:not([type="image" i], [type="range" i], [type="checkbox" i], * be used instead. */ .text-sample { - font-size: 50px; + font-size: 2.5em; /* These may be overridden by the @media rule below. */ display: block; speak: never; -- 2.30.2