09-16-2011, 04:35 PM | #1 |
Wizard
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
adding a CSS to a file
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.
|
09-16-2011, 06:30 PM | #2 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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. |
|
Advert | |
|
09-17-2011, 10:55 AM | #3 |
Wizard
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
I can unzip with Windows 7, but I haven't figured out how to zip yet.
|
09-17-2011, 01:49 PM | #4 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
09-17-2011, 10:36 PM | #5 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Then again, your earlier post shows that you knew this yesterday. |
|
Advert | |
|
09-17-2011, 10:58 PM | #6 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
said Unzip, Then did not know how to put (back) together. |
|
09-18-2011, 12:57 PM | #7 |
Wizard
Posts: 2,145
Karma: 11174187
Join Date: Jan 2011
Device: Sony 350, K3-3G, K4SO, KPW
|
I think I was just unclear.
I've got a txt file I want to convert. I'd like to add a CSS to it, but I don't know how. theducks told me to add it to a zip file - do i need special software, like WinZip, to zip files or is there a Windows 7 function that will do that? |
09-18-2011, 01:40 PM | #8 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Me: I am a WinRar fan |
|
09-18-2011, 03:52 PM | #9 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Would it maybe be simpler for BeccaPrice to just ADD the CSS to the start of the text file?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding new chapter, what about CSS link? | spaze | Sigil | 3 | 02-24-2011 05:35 AM |
External CSS file questions | michaelbr | Sigil | 10 | 01-27-2011 08:08 AM |
Wrong property in the css file | Bertrand | Writer2ePub | 1 | 12-21-2010 05:05 AM |
epub.css file in OpenInkpot | cloggy | OpenInkpot | 1 | 11-09-2010 07:28 PM |
EPUBReader doesn't find the CSS file? | paulpeer | EPUBReader | 8 | 03-23-2010 02:45 PM |