Kindle indenting issues

AllisonK

Crazy Cat Lady
Super Member
Registered
Joined
Jun 1, 2011
Messages
66
Reaction score
10
Location
Florida
Website
www.allisonkraft.com
This is driving me nuts. I have my novel all formatted and it looks fantastic on my Kindle. But today, I uploaded it to my iPad to check it on the Kindle for iPad app, curious to see how it translated to a larger screen.

The first thing I noticed was that all my images (I'm using .gifs as chapter headings) show a white background, thanks to iPad using a light gray background color rather than white. Annoying, but not the end of the world.

What DOES bother me is the paragraph indents. Kindle automatically indents each paragraph, so you aren't supposed to need to put that into your HTML/CSS code. I haven't, and it works great on the actual Kindle device. But for whatever reason, on the iPad (and from what I've been reading online, on the iPhone, Mac and PC Kindle programs), the first-line paragraph indent is a single space. There is no extra line spacing between the paragraphs, so this makes it really difficult to read. I was hoping someone else here has experience with fixing this and could give me some tips? I'm sure I could do a work-around and put a text-indent value in the CSS for my p tag, but I'm hoping to avoid that. I know people like to be able to modify how their Kindle shows text (I have bad eyes, so personally I always enlarge the font sizes), and would rather not override that ability.

I asked this on the Kindle DTP boards, but the only answer I've gotten so far says that the Kindle software for other devices indents differently, and there's nothing you can do. I'm sure they're right, but since all the other ebooks I have on it have bigger paragraph indents, I can't help thinking there has to be some solution!

Thanks! :)
 

Old Hack

Such a nasty woman
Super Moderator
Absolute Sage
Super Member
Registered
Joined
Jun 12, 2005
Messages
22,454
Reaction score
4,957
Location
In chaos
Allison, I've moved your thread into "covers and formatting" where you should get more help.
 

Deleted member 42

Do you by any chance have an extra leading or trailing space before or after the close par tag?
 

dgaughran

Banned
Joined
Oct 1, 2009
Messages
1,256
Reaction score
100
Location
Stuck in Sweden
Website
davidgaughran.wordpress.com
Hi Allison,

How does your HTML file look when you open it in a browser?

I modify the HTML manually in a program like Notepad++ to get it to look exactly how I want. As long as you check each step by opening your HTML file in a browser, you shouldn't go far wrong.

I define all my p tags so that everything is indented the way I want.

I have a normal p which is defined as:

p
{
text-indent: 1em;
margin-bottom: 0.2em;
}

And then for the paragraphs where I don't want an indent (like at the start of a chapter), I have this p class:

p.noindent
{
text-indent: 0em;
margin-bottom: 0.2em;
}

Then all I need to do is tag the paragraph where I don't want an ident with:

<p class="noindent">

I also have seperate p classes for centred text and chapter headings.

Does that make sense?

Dave
 

AllisonK

Crazy Cat Lady
Super Member
Registered
Joined
Jun 1, 2011
Messages
66
Reaction score
10
Location
Florida
Website
www.allisonkraft.com
Thanks for the advice, David. I hand-code all my HTML in Notepad, so there shouldn't be anything extra there that I don't want. In a regular browser, the basic paragraphs are normal - no indents and a blank line between, the way the p tag usually works in web browsers. I haven't styled it otherwise, since I was letting the Kindle do the indenting for me. And on an actual Kindle, it's perfect. It's just weird that the iPad's kindle app only seems to indent one space.

I have special p classes defined for no indent, centered, headings, etc., but have not styled the basic p tag yet. I was advised on the Kindle boards not to, but after seeing that not all the Kindle software indents the same, I think that's going to have to be my solution. I'll try your suggestion of 1em and see how it goes!
 

AllisonK

Crazy Cat Lady
Super Member
Registered
Joined
Jun 1, 2011
Messages
66
Reaction score
10
Location
Florida
Website
www.allisonkraft.com
I haven't tried Calibre yet, though I think I may need to when it comes time to do the ePub version. I still need to look into the best ways to do that. I'm hoping to find a way to convert my html to epub rather than using Word docs, since I now have my html exactly how I want it.

For now, I've added a p style in the CSS to do a 1em indent, and it looks much better. (Actually, I tried 2em first, but it was too big, so I'm going to adjust it down before I finalize things.)

Thanks for all the help!

PS: I'm not a fan of blank lines between paragraphs, either. :)
 

dgaughran

Banned
Joined
Oct 1, 2009
Messages
1,256
Reaction score
100
Location
Stuck in Sweden
Website
davidgaughran.wordpress.com
@AllisonK

I think it's good to view it in Kindle-for-PC, increase the font size, and make the window smaller to mimic that of a Kindle. Then you can get a good view of what your formatting will look like, and you can make the appropriate calls on indents etc.
 

AllisonK

Crazy Cat Lady
Super Member
Registered
Joined
Jun 1, 2011
Messages
66
Reaction score
10
Location
Florida
Website
www.allisonkraft.com
@AllisonK

I think it's good to view it in Kindle-for-PC, increase the font size, and make the window smaller to mimic that of a Kindle. Then you can get a good view of what your formatting will look like, and you can make the appropriate calls on indents etc.

I've just been uploading it directly to my Kindle so far. And my iPad, to test that version. I also downloaded the Kindle Previewer, which lets you see how it will look on the various devices when you just want to check something quickly. Though it probably wouldn't hurt to install Kindle-for-PC, too, just to make sure all the formatting works there as well. I want to cover all my bases. :D
 

Blake M. Petit

Geek Pundit
Super Member
Registered
Joined
Aug 19, 2008
Messages
701
Reaction score
40
Location
Ama, Louisiana
Website
www.evertimerealms.com
Amazon KDP Technical Problem

I'm ready to submit my next project to Kindle Direct Publishing. I've created the title, I've filled in all of the assorted bits and pieces, I've uploaded my cover, and I finally uploaded my book.

When I look at the preview, however, none of my indentations appear.

I check the file again. The indents are there, the settings seem to be normal. I try again.

No good.

I pull out the files for the first two eBooks I submitted to KDP, which indented with no problem, and compare. I can't find a difference.

Has anybody else had this problem? Does anybody have a suggestion as to what I may be doing wrong? The book is saved as an ordinary .doc file, converted down from .docx. Any suggestions would be greatly appreciated.
 

Blake M. Petit

Geek Pundit
Super Member
Registered
Joined
Aug 19, 2008
Messages
701
Reaction score
40
Location
Ama, Louisiana
Website
www.evertimerealms.com
Oy -- finally figured it out and made myself feel stupid in the process. I've been uploading the .doc file the whole time, when I should have converted it to html. Never mind me, I'm going to go find a hole to stick my head in...
 

PeteDutcher

Twitter: @petedutcherjr
Super Member
Registered
Joined
Apr 19, 2011
Messages
498
Reaction score
19
Location
Bradenton, FL, USA
Website
www.facebook.com
Just curious, when typing in Microsoft Word (or whatever program), you can set the space after paragraphs...couldn't you just do this to whatever setting you like along with the First Line Indent?

I usually set mine to 6pt after paragraph and .1 first line indent. So would calibur, if I set it to NOT add a line between paragraphs, carry those setting over?

Also, is there a way to preview the conversion to .mobi when using the Amazon conversion tool to list a book?
 

Blake M. Petit

Geek Pundit
Super Member
Registered
Joined
Aug 19, 2008
Messages
701
Reaction score
40
Location
Ama, Louisiana
Website
www.evertimerealms.com
@Blake M. Petit

How many pages is your "Other peoples heroes" book? I might be ordering it. I love superhero books!

(avid City of Heroes gamer as well; @AmericanAngel-Pete global)

Don't remember the actual page count off the top of my head, but it clocked in at about 92K words, and the eBook includes two bonus short stories. Hope you like it!