View Single Post
Old 02-20-2011, 09:26 PM   #70
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,142
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by cybmole View Post
sure I though I'd done that earlier. I'll just open a test book...
here's a slice of xhtml
Code:
<style type="text/css">
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
</style>
</head>

<body class="calibre5">
  <div class="calibre6">
    <h1 class="calibre11" id="calibre_pb_21"><span class="calibre12">ten</span></h1>

    <div class="calibre13"></div>

    <p class="calibre10"></p>

    <p class="calibre10"><span class="calibre14"><span>It took me a</span> few seconds when I woke up to remember I was in the Soul Identity guesthouse. Val and I had climbed down the hill and returned to the office, where she wasted a few hours giving me demonstrations of her new online applications.</span></p>

    <p class="calibre10"><span class="calibre14">I laughed out loud when I remembered how disappointed I was to go back to work. But I had earned my round-the-clock pay, even if I did have a hard time staying focused on the software.</span></p>
& here's the style sheet stuff
.calibre {
display: block;
font-size: 1em;
line-height: 1.2;
margin-bottom: 0;
margin-left: 0;
margin-right: 5pt;
margin-top: 0;
padding-left: 0;
padding-right: 0;
page-break-before: always
}
.calibre1 {
display: table-row;
vertical-align: middle
}
.calibre10 {
border-bottom: 0;
border-top: 0;
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 1em
}
.calibre11 {
display: block;
font-size: 1.25em;
font-weight: bold;
line-height: 1.2;
margin-bottom: 0.67em;
margin-left: 0;
margin-right: 0;
margin-top: 0;
page-break-before: always;
text-align: center
}
.calibre12 {
color: windowtext;
font-size: 0.9em;
font-weight: bold;
line-height: 1.2
}
.calibre13 {
border-bottom: 0;
border-top: 0;
display: block;
height: 4px;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-indent: 1em
}


NB I figure you can reproduce this with ANY epub - maybe I put the formula in another thread -in 2 steps it is:
1. convert epub to epub with the option to remove blank lines set(ticked) in calibre.

2. then try to add add any kind of top / bottom margin via extra css

ps the above is a clean source. it is a kindle book that i own, converted to epub by calibre, not processed by any other program ( just viewed in Sigil)
Fix calibre10. This is what it should be...
.calibre10 {
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: 1.2em
}

Now make calibre10a as follows and put in the CSS...
.calibre10a {
display: block;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: 0
}

In the XML, replace calibre10 with calibre10a where you want no indent and you are good for no indents.
JSWolf is online now   Reply With Quote