Quote:
Originally Posted by oiver55
Now that I think about it when I use the center class for my <p> the text should be centered because of the code in my css. Do you know why I would have to click the center button in Sigil to get my text centered when the css should be taking care of that through the classes I use? My css is inside the book Browser in the styles folder.
|
You DON'T have to click the 'center' button in Sigil to get your text centered (in fact you shouldn't do that IMO), you simply have to remove the leading space from the class name(s) in your html ... just like theducks originally suggested you need to do.
Even though it doesn't seem to trip up ADE, WebKit, or all EPUB validators, there is simply no good reason for leaving/introducing leading spaces in single-value class attributes. Even if it wasn't potentially tripping up Amazon's conversion tools, there's just no good reason for those spaces to be there.
As to your second example, yes... we'd need to see the css that's being applied. As exaltedwombat said; a single syntax error in the css file can get the whole shebang ignored.