chiark / gitweb /
Replace span with div in h1 of Web page
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 27 Feb 2022 14:49:45 +0000 (14:49 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 27 Feb 2022 14:49:45 +0000 (14:49 +0000)
This makes the masked object the same height as the containing
heading, which avoids the dark bars above and below it when on a
brighter display than mine.

index.xhtml

index b67963a4613b1ef573a3f060db2b038e30ee10a0..0e0c8d52ced94f282028d3c2f1d38da995a6b7b0 100644 (file)
@@ -9,7 +9,7 @@
     <link rel="stylesheet" href="bedstead.css" type="text/css" />
   </head>
   <body>
-    <h1><span class="fade">Bedstead</span></h1>
+    <h1><div class="fade">Bedstead</span></h1>
     <p>Bedstead is a family of outline fonts based on the characters
       produced by the
       Mullard SAA5050 series of Teletext Character Generators.  The