View Single Post
Old 07-02-2009, 06:01 AM   #15
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by rogue_ronin View Post
Minor error: image is Pachelbel.jpg, but html file is looking for pachelbel.jpg -- didn't show up on my system until I renamed the jpg.

First impression: isn't the name attribute deprecated? Should you add the id attribute directly to either the div or the h#?

One of the things that I'm doing is making sure that each div has a unique name -- as you've done with the id="titlepage" bit. This will let you apply styles to any section individually.

If you were to use divs for each chapter, you would not have to explicitly page-break. Simply make it a part of the CSS.

Good start!

m a r
Thanks, and sorry about the jpg.

So far as I know the name attribute is is not deprecated, and I don't know of any alternative for it. The file validates as XHTML strict, which it wouldn't do if name was deprecated.

id refers to unique divs or elements; there is only one title page but several chapters, and I don't think it's worth the trouble to give each chapter a unique id. And the other side of the coin is that although I have only one Author's name h1 I may well want to use several h3s, so I can't make them unique.

Could you give an example please of how a chapter could be put into it's own div and not need an explicit page break? I'd certainly use that technique, but can't work out how to do it.

And could you tell me please whether you built the prc with Mobipocket Creator or with Calibre? And what reader you are using? I suspect there are differences in the way a given prc or mobi format ebook looks depending on how it was built and on what reader it is read, but as I have only a Cybook and can't work out how to use Calibre I've no way of testing that suspicion.

Regards, Alex
AlexBell is offline   Reply With Quote