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) {