diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-11-18 20:17:09 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-11-18 20:17:09 +0100 |
| commit | 3b43a7375eef01df06f216dec1adf380fe9d5da7 (patch) | |
| tree | 1fd9223761c1a8156c2a7da55e2719838f76156c /commun.css | |
| parent | abd9e189b472d90cc592d50555ca107e83bba3a2 (diff) | |
| download | quatuorbellefeuille.com-3b43a7375eef01df06f216dec1adf380fe9d5da7.tar.xz | |
Mitigate ugly title wrapping
IIUC, CSS starts by computing block dimensions; when "Quatuor XXXX"
becomes too big, it picks the max-width; *then* CSS barfs the text
into the block, and finally notices that the text will wrap. Cue ugly
blank space on the right.
https://old.reddit.com/r/css/comments/2y1d6w/fit_block_width_to_content_when_text_wraps_due_to/
Diffstat (limited to 'commun.css')
| -rw-r--r-- | commun.css | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,7 +15,6 @@ header.banner { header.banner .brand { display: flex; align-items: center; - max-width: 40%; } header.banner .brand img { @@ -23,6 +22,7 @@ header.banner .brand img { } header.banner .brand h1 { transition: color 1s; + text-align: center; } header.banner .brand:hover img { filter: brightness(100%) sepia(100%); |
