12-31-2010, 02:02 PM | #1 |
Zennist
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Sigil-created code not honored by Sony PRS-350 :(
I have an epub for which I manually inserted line breaks into each chapter using Sigil to get some extra space between chapter headings and body text. I usually do this via margin-top, margin-bottom, or padding instructions in the stylesheet. However in this case, the manual breaks were working out better (or so I thought).
Well the spacing shows up fine in both Calibre's viewer and in Stanza on my iPod Touch. But my Sony PRS-350 just ignores it! I have no clue why. The code sigil inserted looks like this: Code:
<div class="calibre4"> <span class="calibre9"><br class="calibre4"/></span> </div> <div class="calibre4"> <span class="calibre9"><br class="calibre4"/></span> </div> Anyone have a clue why the Sony reader is ignoring this code so I can avoid it in the future? I doubt I will go change all the chapters for the epub in question but I'd like to know what to avoid going forward. |
12-31-2010, 06:24 PM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Try putting a space in front of the /. I think <br /> is correct. Try it without the class part.
Dale |
01-01-2011, 04:56 AM | #3 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Or add something after the break, like
But really, use margins instead. |
01-01-2011, 05:31 AM | #4 |
Zealot
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
Margins and paddings are the better way, espacially when they are applied to html-elements.
Sometimes some room is wanted only in special cases, just use Code:
<p> </p> |
01-01-2011, 09:46 AM | #5 |
Well trained by Cats
Posts: 29,768
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
<br /> is useful when NO room (paragraph spacing/controlled split line Headings(Sigil uses headings in the TOC. Split-line means the TOC reads as 1 item, not 2+)) is wanted when starting a new line
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sony PRS 350 or Kobo? | Fayth | Which one should I buy? | 11 | 01-06-2011 06:03 PM |
New Sony PRS 350 User | jacksond | Introduce Yourself | 12 | 12-03-2010 02:17 AM |
Sony PRS-350 and PRS-650 | thymaster | Sony Reader | 68 | 09-17-2010 10:44 PM |
Errors in ePub Created in Sigil | FlooseMan Dave | Sigil | 12 | 08-25-2010 08:01 PM |