03-25-2010, 08:03 PM | #1 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2009
Location: Tennessee
Device: Kobo Aura HD
|
CSS odd behavior with ADE/Sony Reader
I've used Sigil in the past to modify other ebooks with great success. I decided it was time to create my own ebook and have spent the last few days scanning a book I own and using Sigil to create the ebook.
It looks great in Sigil and it looks great in calibre. In ADE and on my PRS-505, however, the css doesn't seem to be applied to the text. I've got the link to the css file in the <head></head> section of each chapter Code:
<link rel="stylesheet" href="../styles/style0001.css" type="text/css" /> Any suggestions? |
03-25-2010, 08:11 PM | #2 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
If it looks great in both Sigil and Calibre, then it's an ADE issue. That's not very surprising, ADE has its fair share of faults.
If you could provide the epub file, then others could help you find the root cause. |
Advert | |
|
03-25-2010, 08:37 PM | #3 | |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2009
Location: Tennessee
Device: Kobo Aura HD
|
Quote:
I'll see if I can recreate the problem with some public domain work and post that. |
|
03-25-2010, 09:43 PM | #4 |
Wizard
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
ADE is VERY fussy about errors in the CSS. My bet is that there's a spelling mistake or missing ; that you've overlooked. This will cause ADE to throw out the CSS file.
|
03-26-2010, 02:54 PM | #5 |
Zealot
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
|
|
Advert | |
|
03-26-2010, 02:55 PM | #6 |
Zealot
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
|
Just post the CSS. Very likely the problem is there, and not in the book.
|
03-26-2010, 08:00 PM | #7 | |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2009
Location: Tennessee
Device: Kobo Aura HD
|
Quote:
I just used the CSS generated by my OCR program, with a few modifications. Code:
h1 {text-align: center; font-size: 150%; font-weight: bold;} span.sgc-6 {font-style: italic;} p.sgc-4 {margin-left: 2%; margin-right: 2%; margin-top: 0; margin-bottom: 0; text-indent: 3%} p.opener {margin-left: 2%; margin-right: 2%; margin-top: 0; margin-bottom: 0; text-indent: 0} p.sgc-2 {font-weight: bold} hr.spacing {margin: 2em 25%;} Last edited by AbominableDavid; 03-26-2010 at 08:07 PM. Reason: added information |
|
03-26-2010, 08:12 PM | #8 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2009
Location: Tennessee
Device: Kobo Aura HD
|
I think I've got it fixed - I didn't know capitalization was important.
I had this link in each of my chapters: Code:
<link rel="stylesheet" href="../styles/style0001.css" type="text/css" /> Once I changed the case of the two S's in my link, everything worked in ADE. I'm assuming it will look right on by 505, too - I'm off to test that now. Thanks for the help! |
03-26-2010, 08:21 PM | #9 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Create an issue on the tracker with the file attached. Don't forget to add the "Private" label so only you and I can see it, since you've said your not comfortable with making it publicly available. |
|
03-26-2010, 08:27 PM | #10 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Sep 2009
Location: Tennessee
Device: Kobo Aura HD
|
I manually added the original link to the stylesheet - I didn't notice if Sigil did it or not. I don't really think it's a bug with Sigil, but I'll still create the issue if you still want me to.
|
03-26-2010, 09:16 PM | #11 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Then there's probably no need, but do it anyway. You never know.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Styling Elements in CSS - ADE and Sony | toskpro | Sony Reader | 0 | 07-19-2010 01:55 PM |
PRS-900 Odd behavior (battery?) | Penforhire | Sony Reader | 1 | 06-22-2010 03:03 PM |
ADE mit userstyle css | mtravellerh | PocketBook | 0 | 05-21-2010 03:40 PM |
Classic Odd behavior with random speed increases. | Not_A_Crook | Barnes & Noble NOOK | 0 | 12-25-2009 11:38 PM |
epub, ADE and CSS puzzle | pdurrant | ePub | 3 | 09-03-2009 01:07 PM |