|
|
#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
|
|
|
|
|
|
#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 | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,272
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
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 10:27 AM |
| Problems with Line Height Formatting | JohnnyRocks | Conversion | 4 | 02-20-2011 08:10 AM |
| Wrong property in the css file | Bertrand | Writer2ePub | 1 | 12-21-2010 06:05 AM |
| changing text line-height in css | wjcroft | EPUBReader | 0 | 12-15-2010 04:13 PM |
| Epub line height problem | dorotie | Calibre | 5 | 08-24-2010 04:23 PM |