From 579104393367204146c68afb9ab45cb3db15c8a2 Mon Sep 17 00:00:00 2001 From: Luke Harris Date: Mon, 9 Oct 2023 16:10:36 -0500 Subject: [PATCH] Add margin to header child when it has no siblings Fix for issue #168 --- simple.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simple.css b/simple.css index 870b76e..4f663b0 100644 --- a/simple.css +++ b/simple.css @@ -86,6 +86,10 @@ body > header { grid-column: 1 / -1; } +body > header > *:only-child { + margin-block-start: 2rem; +} + body > header h1 { max-width: 1200px; margin: 1rem auto;