View Full Version : epub, ADE and CSS puzzle


pdurrant
09-03-2009, 10:35 AM
I have a puzzle. ADE isn't honouring one of my CSS styles, but only if it's in a certain position in the CSS code!

This could just be weirdness on ADE's part, in which case I can't do anything expect try to work around it.

But perhaps I'm doing something wrong.

So - I offer for inspection two epubs. They differ only in the CSS, and then only in the position of one line of the CSS - the one defining the p.first class.

In Sample 1, the first paragraph is incorrectly set with a text indent of 1em, pushing the picture into the text, and indenting the first line away from the picture.

In Sample 2, everything works as it should.

I'd be most grateful for any comments. Oh - and these are generated by Sigil 0.1.3

Jellby
09-03-2009, 12:23 PM
Could it be the missing semicolon in

.centre {text-align:center; margin-left:0; margin-right:0}

?

nrapallo
09-03-2009, 12:41 PM
Could it be the missing semicolon in

.centre {text-align:center; margin-left:0; margin-right:0}

?

Yep, that did it for my test Sample1.epub version, but the Sample2.epub has the same error and it worked originally. Another ADE oddity?

pdurrant
09-03-2009, 01:07 PM
Thank you - that's the problem. I thought I'd run that lot through a syntax check, but obviously /before/ I made that typo!

Could it be the missing semicolon in

.centre {text-align:center; margin-left:0; margin-right:0}

?