![]() |
ADE won't use Sigil css file
I'm having trouble getting ADE to use the css file that I created in Sigil. In Book View, everything looks fine. But when I open the epub in ADE, the formatting is gone and ADE displays the book in default
. The individual chapters have: Code:
<style type="text/css">Code:
<style type="text/css"> |
remove the html code from the css file. The first and last lines from your example.
|
I removed the html from the css file, and while it looks good in Book View, ADE still will not display the formatting.
Edit: also, if I put the css in the head of the individual chapter, then ADE displays the formatting correctly. |
FYI: Any little mistake in the css sheet at all will cause ADE to ignore it completely. I found this out the hard way. Drove me crazy.
So you might want to triple check that everything you have in the file is proper css. FWIW, KevinH |
For instance:
margin: 0 0 40px; As far as I know, you can specify 1, 2 or 4 values for margin, but not 3. And are you sure you want to use "px" and "in" as units? Pixels are very device-specific, two screens with the same size but with different resolution will have different margins. Inches are quite absolute, no matter how big or small the screen and the font, they stay the same. You might consider using percent lengths or "em". |
I cleaned up the css file. Used em and also got rid of the sgc-# that Sigil generated. Here is what I have:
Code:
h3 { |
Found the problem.
I had: Code:
<head>Code:
<head> |
| All times are GMT -4. The time now is 05:59 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.