View Single Post
Old 09-16-2011, 06:30 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by BeccaPrice View Post
I'm very new at using Calibre. If I have an html file that I want to convert to epub or mobi, and have a CSS file, how can I use Calibre to attach that CSS to my text file? Or do I need to use something like Sigil to do the attachment, and then use Calibre to convert my file to mobi? I'm trying to make files that can be read on either Kindle or epub readers, on anything from a smartphone to an iPad, so formatting has to be kept simple and to a minimum.
ducks.css is now in the Manifest
OK
How does your HTML know how to use my selectors?

If the CSS was designed as part of the HTML and includes the appropriate Link entries.
You should zip all the Pieces (HTML files, Images,CSS) into a ZIP file before importing into Calibre.
The key is the HTML-CSS work together before you added to Calibre.

If you CSS only applies to standard HTML tags, you can insert the contents into Extra CSS in the Look and feel section of the Conversion Screen.
theducks is offline   Reply With Quote