Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-24-2011, 04:17 AM   #1
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 63
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: Nexus 7
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
Bertrand is offline   Reply With Quote
Old 06-24-2011, 09:14 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Bertrand View Post
When converting with calibre, all line-height properties are written like this :
line-height: 1.2;
Shouldn't it be
line-height: 1.2em;
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.
Starson17 is offline   Reply With Quote
 
Enthusiast
Old 06-24-2011, 04:15 PM   #3
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,694
Karma: 3818505
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"
I didn't know that Starson17. You learn something new every day. Thanks
jackie_w is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 10:32 PM.


MobileRead.com is a privately owned, operated and funded community.