Mobileread
How do you turn off default text-indent <p> in Nook
#1  DAntkowiak 11-16-2011, 11:52 AM
I have been trying to turn off the default text-indent for the paragraphs in Nook.
This is my Css
p {
margin: 0;
text-align: left;
line-height: 1.5em;
text-indent: 0em;
}
Any ideas?
Reply 

#2  MickeyC 11-16-2011, 02:10 PM
Hi DAntkowiak and welcome to MobileRead. If you don't get an answer here soon, try posting your question in our Nook section.
Reply 

#3  Dr. Drib 11-16-2011, 08:28 PM
This member missed an opportunity to introduce himself to our community.

This thread has now been moved to the nook forum.



Don
(Moderator)
Reply 

#4  DAntkowiak 11-17-2011, 10:53 AM
Sorry I'm a newbie. I am involved in testing epub and kindle files and happy to have your forum for support. Thanks for all the great information.
Donna
Reply 

#5  iammalone 12-18-2011, 08:48 AM
Hi! I'm having the same issue. First lines will often come with an automatic text-indent, even if it's not defined in the stylesheet.

This issue was also discussed some time ago in passing here: http://www.mobileread.com/forums/sho...d.php?t=103533

For instance, on the Nook, for something that's supposed to be centred, it'll be off-center, slightly to the left. In ADE, Sigil, iPad, etc. it renders fine.

Is there any way around this? Even manually adding the following to book stylesheets doesn't seem to work:
Code
p, h1, h2, h3, h4, h5, h6, div, span { text-indent: 0em; }
Reply 

#6  Jim Lester 12-19-2011, 08:25 PM
On the Nook Color, Tablet, and Simple Touch, at the bottom of the text options dialog there is a setting for "Publisher Defaults". If you turn this on then the only styling used will be the one in the ebub. If this is off (which is the default), then additional CSS will be inserted to change font, line spacing and margin as well as others.
Reply 

#7  iammalone 12-23-2011, 01:21 PM
Thanks, Jim! That was very helpful!
Reply 

#8  DAntkowiak 01-03-2012, 10:32 AM
Thank you Jim I will give that a try.
Reply 

#9  myrkr 07-11-2013, 08:25 AM
I incidentally used a child selector to fix some inheritance issues for p tags that were not direct children of body. This seems to work for me on nook touch:
Code
body > p{text-indent:0em;}
It seems that !important was ignored, but specificity was respected.
Reply 

#10  gbm 07-11-2013, 11:43 AM
Quote DAntkowiak
I have been trying to turn off the default text-indent for the paragraphs in Nook.
This is my Css
p {
margin: 0;
text-align: left;
line-height: 1.5em;
text-indent: 0em;
}
Any ideas?
Use text-indent: 0; instead of text-indent: 0em;.

Here is a css stylesheet that works on my Nook, using the both the publisher defaults and the nook settings.
Spoiler Warning below







Code
.calibre { display: block; line-height: 1.2; margin-bottom: 0; margin-left: 3pt; margin-right: 3pt; margin-top: 0; padding-left: 0; padding-right: 0; text-align: justify }
.calibre1 { display: block; font-size: 1.5em; font-weight: bold; margin-bottom: 0.83em; margin-left: 0; margin-right: 0; margin-top: 0.83em; text-align: center; text-indent: 0 }
.calibre10 { display: block; font-size: 1.17em; font-weight: bold; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em; text-indent: 0 }
.calibre11 { display: block; text-align: center; text-indent: 0 }
.calibre12 { font-size: smaller;.calibre { display: block; line-height: 1.2; margin-bottom: 0; margin-left: 3pt; margin-right: 3pt; margin-top: 0; padding-left: 0; padding-right: 0; text-align: justify }
.calibre1 { display: block; font-size: 1.5em; font-weight: bold; margin-bottom: 0.83em; margin-left: 0; margin-right: 0; margin-top: 0.83em; text-align: center; text-indent: 0 }
.calibre10 { display: block; font-size: 1.17em; font-weight: bold; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em; text-indent: 0 }
.calibre11 { display: block; text-align: center; text-indent: 0 }
.calibre12 { font-size: smaller; line-height: normal; vertical-align: super }
.calibre13 { text-decoration: underline }
.calibre14 { font-size: smaller; line-height: normal; vertical-align: sub }
.calibre15 { display: block; list-style-type: decimal; margin-bottom: 1em; margin-right: 0; margin-top: 1em; text-indent: 0 }
.calibre16 { display: list-item }
.calibre17 { display: block; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; text-align: right; text-indent: 0 }
.calibre2 { font-weight: bold }
.calibre3 { display: block }
.calibre4 { display: block; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; text-indent: 0 }
.calibre5 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-indent: 0 }
.calibre6 { display: block; font-size: 1.17em; font-weight: bold; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em; text-align: center; text-indent: 0 }
.calibre7 { display: block; font-size: 2em; font-weight: bold; margin-bottom: 0.67em; margin-left: 0; margin-right: 0; margin-top: 0.67em; text-align: center; text-indent: 0 }
.calibre8 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-indent: 2em }
.calibre9 { font-style: italic } line-height: normal; vertical-align: super }
.calibre13 { text-decoration: underline }
.calibre14 { font-size: smaller; line-height: normal; vertical-align: sub }
.calibre15 { display: block; list-style-type: decimal; margin-bottom: 1em; margin-right: 0; margin-top: 1em; text-indent: 0 }
.calibre16 { display: list-item }
.calibre17 { display: block; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; text-align: right; text-indent: 0 }
.calibre2 { font-weight: bold }
.calibre3 { display: block }
.calibre4 { display: block; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; text-indent: 0 }
.calibre5 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-indent: 0 }
.calibre6 { display: block; font-size: 1.17em; font-weight: bold; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em; text-align: center; text-indent: 0 }
.calibre7 { display: block; font-size: 2em; font-weight: bold; margin-bottom: 0.67em; margin-left: 0; margin-right: 0; margin-top: 0.67em; text-align: center; text-indent: 0 }
.calibre8 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-indent: 2em }
.calibre9 { font-style: italic }



bernie
Reply 

Today's Posts | Search this Thread | Login | Register