07-13-2010, 04:16 PM | #1 |
Groupie
Posts: 185
Karma: 1004070
Join Date: Jul 2010
Location: Italy
Device: Kindle for Android, Google Play Books
|
How to maintain a global CSS stylesheet
How can I maintain a global CSS stylesheet, i.e. a CSS file whose definitions apply to all the XHTML files of an ebook? I can manually include the stylesheet by editing the <HEAD> section of each XHTML file. But I was wondering whether Sigil provides any specific tools.
|
07-13-2010, 04:34 PM | #2 |
Bookmaker & Cat Slave
Posts: 11,473
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
If you include the stylesheet call in the <head> of the html document before you import it, (and assuming it's in the same directory as the css sheet you're importing), it will include the stylesheet call automatically in the head of each xhtml section/page, and import the css sheet at the same time. Once you've broken up the pages, you'll have to manually insert it, but you could do a S&R in Codeview to include it by using the </head> code....
|
Advert | |
|
07-14-2010, 07:48 AM | #3 |
Groupie
Posts: 185
Karma: 1004070
Join Date: Jul 2010
Location: Italy
Device: Kindle for Android, Google Play Books
|
|
07-14-2010, 10:19 AM | #4 | |
Well trained by Cats
Posts: 30,354
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You can "Add Existing" (stylesheet) if you have a base stylesheet you start from. and put the standard css link in the head of the document: Code:
<link rel="stylesheet" href="../Styles/stylesheet.css" type="text/css" /> Once Sigil has a sheet for the project, A Sigil-Split/ "Add New" will in include it in the next page |
|
07-14-2010, 05:15 PM | #5 |
Bookmaker & Cat Slave
Posts: 11,473
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Thanks, Ducky, for clarifying my post, which was a quickie. {Groucho eyebrows here}. If you write a quickie, Ducky, is it a quackie?
Amaroso, are you good2go now? Last edited by Hitch; 07-14-2010 at 05:16 PM. Reason: Added dreadful pun. |
Advert | |
|
07-15-2010, 07:38 AM | #6 |
Groupie
Posts: 185
Karma: 1004070
Join Date: Jul 2010
Location: Italy
Device: Kindle for Android, Google Play Books
|
|
07-15-2010, 09:54 AM | #7 | |
Well trained by Cats
Posts: 30,354
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Figuring out, just what Sigil does in different places is my challenge. Not everything works the way I expect it to happen. |
|
07-18-2010, 08:37 PM | #8 | |
Bookmaker & Cat Slave
Posts: 11,473
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I tried to think of something clever to say about a metaphorical stogie, but my imagination failed me, probably because I've spent the day wrestling with the fools at Amazon. Honestly.... Don't get me wrong; what they've done for ebook publishing is the bee's knees, as they say...but bejaysus they can be a royal pain in the @ss to deal with about book formatting!! I've been back and forth with them about 10 times now as to WHY a Calibre-formatted .mobi won't work on K4PC, so I finally gave the frack up and ran the original Sigil-epub thru to .mobi and then back again to Calibre-gen'd-epub, through KindleGen, to get a .mobi that Amazon can't claim is somehow faulty on my part for any failure to display on K4PC. Just because THEY don't have K4PC working properly. Wankers. Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I use calibre maintain series order on kindle? | vaderag | Calibre | 23 | 12-12-2010 04:00 AM |
ePub margins : @page vs stylesheet.css | Agama | Calibre | 1 | 08-16-2010 04:37 PM |
EPub conversion stylesheet.css problem | nycaleksey | Calibre | 1 | 03-25-2010 11:42 PM |
Where is the stylesheet.css? | roger64 | Sigil | 4 | 03-23-2010 02:12 PM |
How do I maintain formatting when converting to lrf? | corroonb | Calibre | 2 | 03-11-2009 12:59 PM |