Line Height [why doesn't it default to pixels?]

Author Posts

Chazzer

Heads up! this post was created when Microthemer was at version 2. The current version is 7. Some references to the interface may be out of date.

Unless other properties, Line Height does not assume px by default. The unit of measurement has to be entered or the rendered page goes all to pot.


Sebastian

Hi Chazzer,

Yes this is deliverate actually. You don’t need to specify a unit value for CSS line-height. If the font size is 10px and you specify a line-height of 1.5 the result will be the same as specifying a line-height of 15px. I think the former option is better in most circumstances (to keep to spacing proportional to the font-size).

But the main reason Microthemer doesn’t default to pixels even though that would be consistent with other settings is that, if it did, it wouldn’t be possible to override the funcitonality and set only a number.

Cheers,

Sebastian


Chazzer

It makes sense now you have explained it.


Sebastian

No problem!

You must login or register to reply to this topic.