View Single Post
Old 02-02-2024, 10:48 AM   #56
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,119
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I'm so sorry it took me longer than expected to get these examples...I couldn't find the images I had made, and my search-fu is not strong...

Attached are a few examples of how using a basic chapter header tag works. From testing accomplished by others it works very well on almost all devices...the one exception if you try and send your ePub through the kepubify service it requires a more precise descriptor (you need to add a class="..." to the <span>.

Code:
CSS:
h3 {yadda yadda}
h3 span {display:block; yadda yadda}

HTML:
<h3>Chapter 1 <span>Chapter Title</span></h3>

<p class="first">This is the first paragraph in the chapter.</p>
<p>This is the second, and subsequent, paragraph(s) in the chapter.</p>
You can do all kinds of fun display stuff just by manipulating the CSS. You can, and should, also provide fallback CSS for those devices that don't support current standards. And, best of all, if the device/app completely ignores the CSS and uses their own, then it is still completely readable and searchable!


Edit:
And yes, Jon, we know you don't approve of anyone else's coding...but the great part is you can change it to whatever YOU want!
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-02-02 104522.png
Views:	52
Size:	119.1 KB
ID:	206166   Click image for larger version

Name:	Screenshot 2024-02-02 104333.png
Views:	51
Size:	118.3 KB
ID:	206167   Click image for larger version

Name:	Screenshot 2024-02-02 104202.png
Views:	50
Size:	138.8 KB
ID:	206168  

Last edited by Turtle91; 02-02-2024 at 10:51 AM.
Turtle91 is offline   Reply With Quote