From 46b7fbf6e7a7e7ffffdc6a8391c71ddccd79dbdc Mon Sep 17 00:00:00 2001 From: offirmo Date: Tue, 16 Jul 2019 22:41:00 +1000 Subject: [PATCH] Better border-box reset --- reset.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reset.css b/reset.css index 6c28388..f1cc996 100644 --- a/reset.css +++ b/reset.css @@ -1,8 +1,8 @@ -*, -*::before, -*::after { - box-sizing: border-box; -} +/* apply a natural box layout model to all elements, but allowing components to change + * https://www.paulirish.com/2012/box-sizing-border-box-ftw/ + */ +html { box-sizing: border-box; } +*, *:before, *:after { box-sizing: inherit; } html, body {