paulpeer
03-23-2010, 10:10 AM
I ran into a strange problem. I have an ePub file, which is OK in Validator, in Sigil, in Bookworm, in Stanza, but EPUBReader ignores the CSS file.
Does someone have an idea what is wrong?
mikelv
03-23-2010, 10:50 AM
I ran into a strange problem. I have an ePub file, which is OK in Validator, in Sigil, in Bookworm, in Stanza, but EPUBReader ignores the CSS file.
Does someone have an idea what is wrong?
Hi Paul,
did you try to load the pages directly in Firefox? Does it look different compared to EPUBReader?
Michael
paulpeer
03-23-2010, 11:02 AM
did you try to load the pages directly in Firefox? Does it look different compared to EPUBReader?
No, in Firefox the CSS isn't recognized either. In Safari it is perfect.
It's the first time that I see such a phenomenon. In all the other e-books I made, EPUBReader and Firefox do recognize the CSS. So I must be overlooking something ...
mikelv
03-23-2010, 11:13 AM
No, in Firefox the CSS isn't recognized either. In Safari it is perfect.
I had a short look at your css. I've seen that you use "<style>" and "</style>". I guess, that these tags are causing the problem. Please remove them and try it again.
paulpeer
03-23-2010, 11:22 AM
I had a short look at your css. I've seen that you use "<style>" and "</style>". I guess, that these tags are causing the problem. Please remove them and try it again.
No, that doesn't change a thing. Thanks for trying anyway!
mikelv
03-23-2010, 11:29 AM
No, that doesn't change a thing. Thanks for trying anyway!
Okay, but you should remove them nevertheless ;).
I found the problem:
<link rel="stylesheet" href="../Styles/Style0001.css" type="test/css" />
You use "test" instead of "text" :).
DaleDe
03-23-2010, 11:36 AM
What should it look like? I just brought it up in Seamonkey and it looks ok to me. the only problem I see off hand is the signature is over to the right while the closing greeting is on the left. Have you overridden the default style setting in FF?
paulpeer
03-23-2010, 12:47 PM
You use "test" instead of "text" :).
O boy, what this small error can cause! But it wasn't my fault ... see here who is the real culprit: http://www.mobileread.com/forums/showthread.php?t=78034 (first response in the thread) :)
paulpeer
03-23-2010, 01:45 PM
What should it look like? I just brought it up in Seamonkey and it looks ok to me.
Yes, it was OK in every program. None of them saw the typo I made (see posts before this one). Only EUBReader/Firefox saw it. Very interesting experience!