View Single Post
Old 07-19-2009, 10:38 AM   #51
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Question. I'm not very familiar with device quirks since I haven't tried converting for various ebook readers, but would an external stylesheet not be possible? The formatting for divs could each be assigned a class. Then, just have a separate stylesheet for each format which takes into account the quirks of the device.

The html file would only include <link href="style.css" rel="stylesheet" type="text/css" />. Assuming you have a stylesheet for each device (e.g. prs505.css, prs505-justified.css, left-toc.css, center-toc.css, mobi.css, etc), you only need to copy/rename the device-specific CSS to "style.css" before you convert.
ilovejedd is offline   Reply With Quote