View Single Post
Old 10-19-2011, 08:40 AM   #21
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
i have no instances of class="body" in the original epub ( which has not come from calibre)
i have just <body>
then <h2 chapter header stuff....
then <p class="indent".... stuff
and no instances of 5pt margins in either the body or the indent definitions- the relevent bits are:
p.indent
{
text-indent: 1.00em;
margin-left: 0em;
margin-right: 0em;
text-align: justify;
}
body
{
margin-left: 0em;
margin-right: 0em;
}

so with those definitions, and your explanation, I'd expect to see text flow right up to bevel - which it does. - TICK

I now understand what calibre does, & where it does it, to add 5pt margins - TICK

I can also "prove" your explanation of the overrides, by setting e.g. left margin 5em in body to make a big visible difference.
body (without dot) then hugely indents the whole chapter. body (with dot) is over-ridden by p.indent & thus has no effect. TICK



but a zero left margin in body ( no dot) does not look the same as a zero left margin in p.indent & that is just mystifying - unless it is a side effect of justify...
YES. THAT IS IT. if i set p.indent text-align:left; then the text flows right up to left edge and all behaviour is consistent with explanations given:

body , with dot, is overridden by p.indent, and the text-align :justify in that definition adds something akin to a 5pt left & right border

I'm going tp quit while I think I'm winning & go read something :0)
cybmole is offline   Reply With Quote