Quote:
Originally Posted by Keroberos
Possible typo in the CSS file? ...
|
I don't agree.
Since there are two chapters that display as intended and several others that don't the CSS, at least those styles used in the first 2 chapters, is well enough formatted for iBooks to handle correctly.
The fact that the formatting changes beginning at chapter 3 indicates that there is some change in the (x)html document construction that begins in chapter three and is repeated or inherited throughout the rest of the (x)html document(s). This change could be a typo at the end of chapter 2 or at the beginning of chapter 3. It could also be a design change.
Types of design changes that could easily have this affect include:
- Different styles for the <p> tags in the two portions of the document.
- Different style in any enveloping <div> tags or styled <div> tags enveloping some <p> tags and not others.
- It could be a style applied in the <body> tag if chapter 3 et al are separate (x)html files.
- It can also happen when there is more than one CSS file and some of the chapter (x)html files link to one and the others link to another.
- It could be that everything up to chapter 2 links to the CSS only and starting in chapter 3 there is a <style> section in the <head> section that overrides the styles set in the linked CSS or vice versa.
Simply looking at the (x)html in Sigil's code view and comparing the tags in chapter 2 and chapter 3 should reveal this type of "fault".