Laura Brady
|
Here is a hack that I use in cases like this: I put a period after the number but put it in a span with a class of hidden. And then assign display:none; CSS to that class.
Your code example would be:
<section epub:type=”chapter” role=”doc-chapter” aria-labelledby=”ch02″>
<h2 id=”ch02″ class=”chaptitle”><span id=”page_18″ aria-label=” Page 18. ” epub:type=”pagebreak” role=”doc-pagebreak”/><span class=”chnum”>Two<span class=”hidden”>.</span></span> <span class=”ctitle”>I Wanna Dance!</span></h2>
Try it and let us know how it sounds.
March 11, 2024 at 4:26 pm
|