Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2011, 08:40 PM   #1
poppies
Junior Member
poppies began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2011
Device: none
Nook Paragraph Spacing

Hi, I've created an ePub file which seems to work on ADE, Calibre, iBooks, etc.

However, when I load it onto Nook for Mac (to test for Nook users) the paragraphs all run together (i.e. have no margin) no matter how much "margin-top" or "margin-bottom" I add to the <p> tag.

Any ideas?
poppies is offline   Reply With Quote
Old 04-19-2011, 12:22 AM   #2
poppies
Junior Member
poppies began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2011
Device: none
Turns out after much experimentation, Nook for Mac doesn't respect margins applied to <p> tags, only <div>. Seems strange.
poppies is offline   Reply With Quote
Advert
Old 04-19-2011, 05:23 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
It might have some internal style for <p>, with a higher priority.

Try increasing the priority of your styles with one of these:

1. Add "!important" to the margin value.
2. Use a class for your <p>, and use it in the CSS style too.
3. Use a more specific selector, such as "body p".

If it works, I'd go for #3, it's easy, does not need extensive changes, does not break anything. I had a similar problem with <body> margins in the Cybook, and #3 worked (with "html body" as a selector)
Jellby is offline   Reply With Quote
Old 04-21-2011, 12:01 AM   #4
poppies
Junior Member
poppies began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2011
Device: none
#3 ended up working perfectly, that was a really graceful solution. Thanks so much!
poppies is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paragraph spacing Banks ePub 2 08-09-2012 05:24 PM
What sort of paragraph spacing do you prefer? bfollowell Workshop 4 10-27-2010 09:04 PM
Paragraph spacing jhempel24 Calibre 5 08-24-2010 12:14 AM
Questions about <p> and <div> and paragraph spacing droople Sigil 7 08-14-2010 12:03 PM


All times are GMT -4. The time now is 12:00 AM.


MobileRead.com is a privately owned, operated and funded community.