View Single Post
Old 02-18-2011, 07:59 AM   #60
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
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)

Last edited by cybmole; 02-18-2011 at 08:27 AM.
cybmole is offline   Reply With Quote