From 6bb27ec34f32cfbda8395f9a0df8a65310e19fdd Mon Sep 17 00:00:00 2001 From: Lanta Date: Mon, 6 Nov 2023 09:24:51 +0100 Subject: [PATCH] h1 center --- includes/styles.css | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/includes/styles.css b/includes/styles.css index 06af36f..0add64b 100644 --- a/includes/styles.css +++ b/includes/styles.css @@ -70,14 +70,24 @@ header, main, footer { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } -header h1, section h2 { +header h1 { border-bottom: 1px solid white; margin-bottom: 10px; padding-bottom: 5px; - font-family: 'Bungee Spice' - + font-family: 'Bungee Spice'; + text-align: center; /* Centers the text horizontally */ + margin-left: auto; + margin-right: auto; } +section h2 { + border-bottom: 1px solid white; + margin-bottom: 10px; + padding-bottom: 5px; + font-family: 'Bungee Spice'; +} + + footer { text-align: center; }