Asbjorn Grandt - 2011-01-08 16:41:09 - In reply to message 3 from ann castro
The error from epubcheck suggest that there is superfluous data or errors in the zip file structure. It had nothing to do with the HTML files making up the chapters in an Epub itself.
Can you take the epub file with the errors, copy it, and rename it to .zip and unpack it with WinZip or WinRar?
If you have a Hex editor the epub file must start with "PK.." or Hex "50 4b 03 04" and most likely end with 4 or more null characters (hex 00), though that is not a requirement. But if it contains regular text at the end, you have a problem.
When it comes to styling, I tend to advise people to use a conservative approach, simple is better. Most readers are relatively simple devices and don't do very advanced styling, and the best result from Epub files generally comes if the device is allowed to flow the text as simply as possible.
This is the content of the css file I often use:
So I've gotten rid of the background, double columns etc. I did end up inserting the tables as photos as they kept messing up. But it still has a lot of photos. Plus a lot of paragraphs fromt he different training steps. And that's how I end up with all the widows and orphans.
I have used in the headers:
and I have defined
in an attempt to keep photos and captions together.
Neither are working so well. Same for the widowns and orphans commands - just not working.
Don't know why. I am testing on an ipad. Maybe that has something to do with it.
I am getting close to the point of saying THWI and uploading it anyways. (I know, bad attitude <smirk>).
I have googled up and down and what seems to be working for others does not seem to work for me. Ah well. :(
BTW do you know of a free Hex editor. Never tried one, and frankly do not even know what you are talking about there. :-), but would be interested to have a look. Learn s.th. new. :-D