From f23895e4b9ab8d6f9a7e4182cd8965586dfbd8de Mon Sep 17 00:00:00 2001 From: Susam Pal Date: Thu, 31 Dec 2020 21:21:24 +0530 Subject: [PATCH] Use unitless line-height for heading elements Prior to this fix, the line-height of heading elements is set to 1.2em. This leads to an issue when the font-size of heading anchor element is reduced as shown in the following example: Test

Foo

Bar

Foo

Bar

The smaller font-size for the anchor element within class "b" leads to a larger overall size for the heading element as explained at . Set the line-height of heading elements to the unitless number 1.2 to resolve this issue. --- sp.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp.css b/sp.css index 8f7e8f1..2b1e5b0 100644 --- a/sp.css +++ b/sp.css @@ -8,7 +8,7 @@ body { } h1, h2, h3, h4, h5, h6 { margin: 1em 0 0.5em 0; - line-height: 1.2em; + line-height: 1.2; } a:link, a:visited { color: #03c;