06-24-2011, 04:17 AM | #1 |
Zealot
Posts: 124
Karma: 10
Join Date: Dec 2008
Location: France
Device: None
|
Incorrect line-height property in calibre CSS ?
When converting with calibre, all line-height properties are written like this :
line-height: 1.2; Shouldn't it be line-height: 1.2em; Code:
.calibre { display: block; font-size: 1em; line-height: 1.2; } .calibre4 { font-size: 1em; font-weight: normal; line-height: 1.2; } etc |
06-24-2011, 09:14 AM | #2 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
No. The first form is unitless. The second form has units of em. If you use a unitless line-height definition, all descendants get the line height specified as a ratio of their units. If you use units, all descendants get the line height based on the parent line height. Unitless is the preferred way to define line heights.
|
Advert | |
|
06-24-2011, 04:15 PM | #3 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I didn't know that Starson17. You learn something new every day. Thanks
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Epub Output: Line Height | greenapple | Conversion | 20 | 01-27-2013 09:27 AM |
Problems with Line Height Formatting | JohnnyRocks | Conversion | 4 | 02-20-2011 07:10 AM |
Wrong property in the css file | Bertrand | Writer2ePub | 1 | 12-21-2010 05:05 AM |
changing text line-height in css | wjcroft | EPUBReader | 0 | 12-15-2010 03:13 PM |
Epub line height problem | dorotie | Calibre | 5 | 08-24-2010 03:23 PM |