04-14-2011, 08:40 PM
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.
04-19-2011, 12:22 AM
Turns out after much experimentation, Nook for Mac doesn't respect margins applied to <p> tags, only <div>. Seems strange.
04-19-2011, 05:23 AM
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)
04-21-2011, 12:01 AM
#3 ended up working perfectly, that was a really graceful solution. Thanks so much!