Re:58 bytes of CSS to look great nearly everywhere
by xani_ on Sunday September 25, 2022 @03:43PM
(#32975233)
That line spacing is obnoxiously big tho
[ Parent
| on HN ]
Re:58 bytes of CSS to look great nearly everywhere
by skyfaller on Sunday September 25, 2022 @05:25PM
(#32976431)
Yeah, I agree the line spacing is far too much. Butterick's Practical Typography recommends 1.2 to 1.45: https://practicaltypography.com/line-spacing.html
Really the only reason to use a line spacing of 2 is if you are printing it and then editing the text with a pen. So... maybe in a print stylesheet in a very specific situation? But never on the web, IMHO.
Re:58 bytes of CSS to look great nearly everywhere
by collinmanderson on Monday September 26, 2022 @12:05PM
(#32984851)
Yeah when I saw 2em padding and 1.75 line height in the css I thought "too big". I think 1em padding and 1.5 line-height are a bit better for general defaults.
It often can look better to have more whitespace, but it lowers information density. It depends on the situation.
Re:58 bytes of CSS to look great nearly everywhere
by rossjudson on Sunday September 25, 2022 @06:24PM
(#32977000)
I think the line spacing is "comfy". Approved. For me.