Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2011, 09: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, 01: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
Old 04-19-2011, 06: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: 6,259
Karma: 4801165
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, 01: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 01:42 PM.


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