Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Barnes & Noble NOOK

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2011, 10:52 AM   #1
DAntkowiak
Junior Member
DAntkowiak began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2011
Device: nook, sony, kindle
How do you turn off default text-indent <p> in Nook

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?
DAntkowiak is offline   Reply With Quote
Old 11-16-2011, 01:10 PM   #2
MickeyC
Grand Sorcerer
MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.
 
MickeyC's Avatar
 
Posts: 16,732
Karma: 12185114
Join Date: Nov 2007
Location: Florida
Device: iPhone 6 plus, Sony T1, iPad 3
Hi DAntkowiak and welcome to MobileRead. If you don't get an answer here soon, try posting your question in our Nook section.
MickeyC is offline   Reply With Quote
Advert
Old 11-16-2011, 07:28 PM   #3
Dr. Drib
Grand Sorcerer
Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.
 
Dr. Drib's Avatar
 
Posts: 44,747
Karma: 55645321
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
This member missed an opportunity to introduce himself to our community.

This thread has now been moved to the nook forum.



Don
(Moderator)
Dr. Drib is offline   Reply With Quote
Old 11-17-2011, 09:53 AM   #4
DAntkowiak
Junior Member
DAntkowiak began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2011
Device: nook, sony, kindle
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
DAntkowiak is offline   Reply With Quote
Old 12-18-2011, 07:48 AM   #5
iammalone
Junior Member
iammalone began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: Nook Simple Touch
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: https://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; }
iammalone is offline   Reply With Quote
Advert
Old 12-19-2011, 07:25 PM   #6
Jim Lester
Evangelist
Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.Jim Lester is less competitive than you.
 
Jim Lester's Avatar
 
Posts: 416
Karma: 14682
Join Date: May 2008
Location: SF Bay Area
Device: Nook HD, Nook for Windows 8
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.

Last edited by Jim Lester; 12-19-2011 at 07:30 PM.
Jim Lester is offline   Reply With Quote
Old 12-23-2011, 12:21 PM   #7
iammalone
Junior Member
iammalone began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: Nook Simple Touch
Thanks, Jim! That was very helpful!
iammalone is offline   Reply With Quote
Old 01-03-2012, 09:32 AM   #8
DAntkowiak
Junior Member
DAntkowiak began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2011
Device: nook, sony, kindle
Thank you Jim I will give that a try.
DAntkowiak is offline   Reply With Quote
Old 07-11-2013, 07:25 AM   #9
myrkr
Junior Member
myrkr began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2013
Device: Nook Simple Touch
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.
myrkr is offline   Reply With Quote
Old 07-11-2013, 10:43 AM   #10
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by DAntkowiak View Post
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:

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
gbm is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any hack to make default ebook text bold? judith009 Kindle Developer's Corner 9 01-01-2011 02:32 PM
Changing default text style? jyavenard Kindle Developer's Corner 5 09-29-2009 09:38 AM
missing lines of text on page turn anton980 Sony Reader 5 05-26-2009 12:49 PM
need vba/word scripting help to turn inline text into header Bierkonig Workshop 3 01-09-2009 09:40 PM
Default Text Size jlbfoot Sony Reader 19 12-29-2008 03:41 PM


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


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