View Single Post
Old 11-18-2010, 04:07 AM   #7
Junior Member
boocko began at the beginning.
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: kindle3
I'm trying to insert custom CSS into downloaded pages, but it doesn't work.
I put extra_css into recipe, I download the page, but I can't find the css in the downloaded code. I want to do exactly the same thing as in manual:

Specify any extra CSS that should be addded to downloaded HTML files It will be inserted into <style> tags, just before the closing </head> tag thereby overriding all CSS except that which is declared using the style attribute on individual HTML tags. For example:
But I can't make it work. I have tested also the included recipes, e.g. cnn.recipe, which includes a lot v extra_css like this:

ebook-convert cnn.recipe cnn --test -vv

The output is saved into folder cnn. I look into the folder. The extra_css is not in the stylesheet.css, nor in any html page. The only style in the HEAD (according to the manual, this is where extra css should go) is

<style type="text/css">
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
I am a bit confused.
boocko is offline   Reply With Quote