From 07b7c8e12498a397764fd81569c3696d9644c4b5 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Wed, 3 Dec 2025 12:18:29 -0500 Subject: [PATCH] Update samy.css --- samy.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/samy.css b/samy.css index 4d236a6..80c2ad2 100644 --- a/samy.css +++ b/samy.css @@ -271,9 +271,14 @@ body { color: #ff4d4d; /* big red */ font-weight: 900; text-transform: uppercase; - text-align: center; - width: 100%; /* make it span the row */ - } + + /* center this element without affecting siblings */ + display: block; + width: max-content; /* shrink to the text width */ + margin-left: auto; + margin-right: auto; /* centers the block in its parent */ +} + /* Responsive */ @media (max-width: 768px) {