![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
As long as you are happy. Sounded mildly interesting your problem, but it would be good to see a page that shows the context of the problem. Are you sure you need the units on the line-height? Will this unit have no poor consequence in your context later on? Will you rue the day you used it? In general, unless there is a special reason, it is safer not to use units with line-height. |
#12
| |||
| |||
|
|
Use line-height: 1 rather than line-height: 100%. They mean almost the same, except when inheritance is involved. If you inherit 100% you get 100% of the font size of the element you inherited it from, not 100% of your own font size. This is weird and I can't imagine what you would ever want, so just use 1. The default for line-height is "normal" which is usually based on a value built into the particular font. It usually works out as about 1.1 or 1.2 x font-size, but depends on both the browser and the font. |
![]() |
| Thread Tools | |
| Display Modes | |
| |