From 9d06adb6966a4c7ad1c7605f49c2cf30755bc928 Mon Sep 17 00:00:00 2001 From: Florrie Date: Wed, 14 Nov 2018 16:49:43 -0400 Subject: Make narrow-width size look nicer I.e. if the width is less than 20cm, make sure there's still some padding on the edges. I'd like to figure out how to use left/right margins instead of padding here (since margin seems to semantically make more sense), but I don't think there's a way to do anything like "margin: max(8px, auto)"; I'd have to use a container element around all content (including the header!) to apply both margins. --- style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/style.css b/style.css index 5d629e2..f39dcf7 100644 --- a/style.css +++ b/style.css @@ -2,6 +2,7 @@ body { max-width: 20cm; margin-left: auto; margin-right: auto; + padding: 0 8px; } li { -- cgit 1.3.0-6-gf8a5