From 6c3c08400b55801c714cb81d80c38cb1293fb29a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:26:20 -0600 Subject: [PATCH] feat: Implement clearfix before headers --- assets/styles/millironx.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/assets/styles/millironx.css b/assets/styles/millironx.css index 3275b67..a6f91d8 100644 --- a/assets/styles/millironx.css +++ b/assets/styles/millironx.css @@ -253,6 +253,22 @@ blockquote small { float: right; max-width: 50%; } + + /* + Clearfix implementation + */ + h1::before, + h2::before, + h3::before, + h4::before, + h5::before, + h6::before { + content: " "; /* Older browser do not support empty content */ + visibility: hidden; + display: block; + height: 0; + clear: both; + } } /* end @media */ @supports (animation-timeline: scroll()) {