Thread: H1 too small
View Single Post
Old 06-25-2023, 11:01 PM   #6
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,615
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by skunkworks View Post
Thank you, Karellen. So that I can hopefully learn from your largesse, how can I tell in the next ebook which block is H1?

The novel is not at all complicated. There are only two font sizes used: 12 and 14. I have no idea why all those classes were generated. If italics are considered another class, we have only three classes. Yikes. It's gone rogue!
This is your heading...
<h1 id="id_Toc525564898" class="block_12">Chapter 1</h1>

The <h1> tag is pretty easy to find in the xhtml pages as you have discovered.
The class attribute in the <h1> opening tag indicates that value "block_12" is styling the heading. It may be a different value in your next book.
You then go to your css page, and find that same class, "block_12" in this case, and modify it.
You should also check each heading to ensure that they are all using the same class. I have a suspicion some may be different, judging by the size of that stylesheet you posted.

It's best that you don't specify a font size for the body of the novel. Let the user set that to their own personal preference in the ereader settings. Which is why I suggested removing the font sizes.
Karellen is offline   Reply With Quote