View Single Post
Old 06-25-2025, 02:38 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,915
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by robertmchicago View Post
I am making a reflowable EPUB 2 book using Sigil. The book also has about 400 questions and 400 answers, divided into two parts: one part for the questions, and one part for the answers.
Each question has a link that goes to its answer, and each answer has a link that goes back to its question.
I want to make sure that when a reader clicks on a link to an answer, they only see that one answer, not the other answers.
One simple way is to put each answer in a separate HTML file, but KDP does not allow more than 300 HTML files.
I also tried using page breaks, but they don’t work properly on all devices like Kobo.
I know I can't use JavaScript because most eBook platforms don’t support it.
So, I want to ask: Will this idea work?

After each answer, I add this line in HTML:
<p class="endline">===============</p>

And in CSS:
p.endline {
font-weight: bold;
text-align: center;
margin-bottom: 100vh;
}
This puts a long space after each answer to push the next answer far down, so only one answer is seen at a time.
What do you think? Will this be a good way to solve the problem?
You do not want vh as it doesn't work in ePub2.
JSWolf is offline   Reply With Quote