Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31483

Importing css in html files

$
0
0
I use Calibre from the command line, to convert html files that my software creates. I have many users that also use my software, so I place the .css file on my server, and link to it using the @import command:
<style type="text/css">
<!--
@import url(http://recipetools.gotdns.com/css/recipeclips.css);
-->
</style>

That lets everyone using my software use the same css file. However, Calibre balks at the @import line, and won't produce an ebook. If I simply remove that line, it does create an ebook. (type unimportant)

I know the html is properly formed, and it is inside comment tags, so I suspect that Calibre doesn't recognize it.

My request:
If not recognized, could it simply skip the line and proceed? Shouldn't it just skip comments anyway?

My preference:
Recognize the command and USE the css to make the ebook.
Here is a link to one of the files that my software creates:
http://recipetools.gotdns.com/mags/CI/117/CI-117.html
If you do 'view source' on that page, you will see the import css command, and you can see that it is used to format that web page.

Thanks,
John

Viewing all articles
Browse latest Browse all 31483

Trending Articles