From 1bb0cf167ac72005b91b71aa6255fcea3166ecb9 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Wed, 5 Oct 2022 22:48:16 -0700 Subject: [PATCH] Add minimum margin for small displays --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 556e036..65ebc07 100644 --- a/index.html +++ b/index.html @@ -22,8 +22,8 @@ } main { - max-width: 720px; - margin: 0 auto; + inline-size: min(100% - 16px, 720px); + margin-inline: auto; } form { -- 2.47.3