On Mon, Mar 9, 2009 at 2:47 PM, L. David Baron <[email protected]> wrote: > So what the 'line-height' property does is actually a lot more like > "inline height" than "line height". And that height is always > placed so that the font is centered within it (or, in this case, so > that it is centered within the font, since the line-height is > smaller).
But if I set display: block; on STRONG I can get the effect I want (i.e. a line-height smaller than the font-size), but because strong is an inline element it behaves differently than I would expect. This behaviour seems really unintuitive, especially since there appears to be no way to force the line height I want (except for setting line-height: 0; which breaks IE and also seems completely unintuitive). On Mon, Mar 9, 2009 at 2:54 PM, Felix Miata <[email protected]> wrote: > You really can't ignore it once you understand the magnitude of the problem > px can create: http://fm.no-ip.com/SS/blahas01.png Don't worry, I more than understand the implications. :-) On Mon, Mar 9, 2009 at 2:54 PM, Felix Miata <[email protected]> wrote: > px for line-height can be a bigger problem than for text: > http://fm.no-ip.com/auth/line-height-inherit.html IMO this is the desired behavior, and why I always set units for line-height. If I set a baseline of 18px, or 2em, or whatever, I want that baseline no matter the font-size. If I wish to change the line-height I'll do it explicitely for the element I wish to. -- Blake Haswell http://www.blakehaswell.com/ ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
