View Single Post
Old 05-25-2013, 12:11 AM   #1
meg2157
Junior Member
meg2157 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2013
Device: Kindle Touch
Problem with Styles

I'm working on an eBook for a client and have it almost completed except for one strange problem.

It seems like half the time my styles are being ignored. Everything looks great on KF8 devices. The problem is in the older mobi7 part.

I have my main styles set up with a 1.5em text indent. But there are a few places where I don't want an indent (like the first paragraph of a chapter).

Here are the main classes I'm using:

.maintext {
font-size: 1em;
margin-bottom: 0.2em;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-indent: 1.5em
}

.maintextspace {
font-size: 1em;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-indent: 1.5em
}

And if I want to have no indent I have:

p.noindent {text-indent: 0}

Now, when I combine the 'maintext' with the 'noindent' it works fine and shows up with no indent. However, when I combine the 'maintextspace' and 'noindent' it show up with an indent.

Here's how I have it in the text of the book:

<p class="maintextspace noindent">text here</p>
or
<p class="maintext noindent">text here</p>


I can not figure out why one is working and the other isn't. They are identical expect for the 'margin-bottom'.

Please help?

A little more info:
I'm using Sigil to code the ePub and then using KindleGen to create the mobi file.
Both the ePub and KF8 version are working, only the mobi7 is giving me these problems.
meg2157 is offline   Reply With Quote