Quote:
Originally Posted by shaina
well, i had a temporary sol. i converted all p tags to h5 ... n defined style for h5 in css... but is it like <p> tags doesnt behave properly with alignment in xhtml???
|
<p> tags behave properly in xhtml; but they don't in iBooks. By any chance, did you use OTHER tags, like spans, inside the p tags that were properly aligned in the first two chapters? Text alignment tags in iBooks, for centering, for example, work properly ONLY when there is another tag inside the p tags. If, in your correctly-aligned chapters, your paragraphs had spans inside them, then alignment would work.
To force iBooks to accept an alignment, you have to have a second element within the main p element, that contains the text.
Alternatively, did you have a main body setting of align: left? Or full-justification? What happens (forgive me if someone asked this) if you turn OFF full-justification for the device itself (the default way that the device is shipped) in Settings? Did you try !important after your css declaration?
You have something wonky going on, because iBooks is shipped with a default setting of full-justification turned on at the device settings level. You actually have to turn it OFF in settings. To troubleshoot, first you have to find out what the device itself is set to as its default; then check your body setting tags; then check the paragraphs that worked the way you wanted (and if they have other elements embedded that contained the text), and those that didn't.
I can't really tell if this is your first ePUB, but if it is, choosing iBooks as your first hurdle of choice isn't the best idea, because you have a lot of things to do to force it to look right that aren't "normal" CSS, like !important tags and wrapping empty spans around everything in order to get the text-alignment that you want, as merely two examples.
Let us know if any of the above pertain...
HTH,
Hitch