|
|
#1 |
|
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,456
Karma: 318076944
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Sony PRS-505, text indents, paragraph spacing
Using the splendid new Sigil I'm working on creating an ePub and testing it on the PRS-505.
Despite the preview in Sigil showing paragraphs having a text indent, and no spacing between paragraphs, on the PRS-505 and Adobe Digital Editions I see no indent and a space between paragraphs. I'm specifying the indents and spacing in the CSS like this: p { text-indent: 1em; margin-bottom: 0em; margin-top: 0em } and the paragraphs in the text are coded like this: <p>My instruction in her history is derived from unimpeachable sources, not hitherto available; much is lost through the interception of time and natural accident; but, from that which remains, the present work has been studiously and faithfully compiled.</p> What's going wrong? Can't Adobe Digital Editions handle CSS properly? Any advice gratefully received. |
|
|
|
|
|
#2 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,786
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Check the actual code and see if there is something that's being specified that's overriding the p in the CSS.
Or you could post the ePub and I'll have a look at it and see what I can find. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,456
Karma: 318076944
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Ah - so it should work then? In that case I'll look a bit closer, and perhaps try simplifying things until it works. Thanks.
|
|
|
|
|
|
#4 |
|
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,456
Karma: 318076944
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
How embarrassing. It seems I had a syntax error (an extra closing } ) at the end of my CSS styles. Apparently this causes ADE to throw away all the styles. Fixing this fixed things up a lot. Including getting my drop capital graphics to work as drop capitals. Hooray!
|
|
|
|
|
|
#5 |
|
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
those pesky extra closing brackets !
they're quite annoying. glad you caught it.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,786
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Another annoyance I've found in CSS is having a missing ; can cause problems.
|
|
|
|
|
|
#7 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The CSS validator can be useful, I think it should be included in epub validators.
|
|
|
|
|
|
#8 | |
|
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,456
Karma: 318076944
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Hmm... an XHTML and CSS validation command would be a nice addition to Sigil. I'll add it to his list!
Quote:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding indents / removing line spacing for news | jubcoo | Calibre | 4 | 10-27-2010 05:39 PM |
| Paragraph spacing | jhempel24 | Calibre | 5 | 08-24-2010 01:14 AM |
| Fustrating Text spacing (BUG?) in BD, Sony 505 | bookstar | Sony Reader | 2 | 03-25-2009 01:47 PM |
| convert to lrf : paragraph indents, line breaks | karo02 | Calibre | 4 | 01-27-2009 10:19 AM |
| Paragraph indents from command line | JSWolf | Calibre | 4 | 11-06-2008 09:41 PM |