View Single Post
Old 04-21-2015, 06:27 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 579
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
CSS being ignored in generated catalogue

I have generated an AZW3 catalogue for my Kindle, but I have some issues with the formatting. I had a look at it with the Calibre editor, and the CSS doesn't seem to be being applied properly. The CSS for p.line_item looks like this:
.line_item {
clear: both;
display: block;
font-family: monospace;
text-align: left;
text-indent: -2em;
margin: 0 0 0 2em;
}
The actual text is in the normal font, and when the line is wrapped the second part of the line is not indented. The editor's "Live CSS" shows the computed final styling as this:
font-family: serif;
font-size: 18px
line-height: 21px
page-break-inside: avoid
text-align: left
text-indent: -28px
The font-family and margin-left settings are being ignored. Similarly, the left margin setting for p.series is ignored.

Can anyone tell me what's going on here?
Phssthpok is offline   Reply With Quote