View Single Post
Old 03-19-2016, 06:56 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,116
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by barryem View Post
Thanks for this. I realize I am asking you to do my homework, at least a bit. Learning new stuff is difficult these days. You'll understand that in time, with a bit of luck.

My real concern is with epub. Some things don't convert well to mobi or azw3 but most do. Lately I'm reading epub on my phone most of the time though.

In CSS how do I know which is the chapter block style? I did try changing references to different CSS styles but that didn't seem to affect anything at all. However those changes were made in the book. I didn't try changing anything in the CSS.

Barry
Reverse Engineer it Look at the code
(this is from a Project Gutenberg book)

Code:
<h2 id="pgepubid00004"><a id="Chapter_I"></a><a id="Page_5"></a>Chapter I</h2>
  <h3 id="pgepubid00005">PERFUMED PLANET</h3>
In this case there is no class=

So we will apply it to (ALL) H2 instead in the CSS


Code:
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    /* all headings centered */
    clear: both;
page-break-before: always;
}
As you can imagine, applying to every H2 might be sub optimal
in many case there would be a class="<something>" associated with those particular H2
so you would find
.<something> {
or
it might be h2.<something> {
and put it there
theducks is offline   Reply With Quote