Quote:
Originally Posted by Interrobang
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.