Quote:
Originally Posted by nabsltd
It's a neat trick, but what use is it? The original poem was not formatted that way, so what are you trying to accomplish?
In other words, yes, JavaScript can do some things you can't do with HTML and CSS alone, but the number of times you actually need JavaScript to accomplish the look and feel of any sort of printed text is close to zero.
|
I don't use JS to mimic the layout of a printed book; I use JS to improve the reading experience.
An epub has to give me more than a book in paper. Do you know JS? Have you studied the subject? JS gives you the possibility of working much less and formatting an entire book much faster (and apply styles that are practically impossible to do by hand (because it would take a lot of time and a lot of code). I can't explain here, in a few lines, what I have read (and put into practice) in many books. But if you want a small sample of what you can get, do a search in Google with "text fit javascript" and you'll some tools to get that titles and subtitles always looks perfect no matter the user change the font-size.