View Single Post
Old 07-24-2023, 07:13 AM   #16
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Interrobang View Post
If specifying line-height, extra spacing between text blocks and any padding around images should be a multiple of the specified line-height to keep text aligned across the spine.
"Should" is not "must", but anyway...

"If specifying line-height". You should not do that, so the rest can be ignored.

"extra spacing between text blocks and any padding around images should be a multiple of the specified line-height". This is easy to comply with. You set line-height to, say, 1.2, and then set extra padding to 0.6... oh, wait, they mean integer multiple. Well, set the padding to 1.2 or 2.4

"to keep text aligned across the spine". Nonsense. This won't happen (except maybe in some very specific broken applications). It might work with some vanilla code, but first, line-height works weirdly (and you should not specify it, and the user can change it), elements with different font size will alter line spacing, then they don't say what's the image size, or what to do with margins.
Jellby is offline   Reply With Quote