Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2010, 04:16 PM   #1
amoroso
Groupie
amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.
 
amoroso's Avatar
 
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.
amoroso is offline   Reply With Quote
Old 07-13-2010, 04:34 PM   #2
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
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....
Hitch is offline   Reply With Quote
Advert
Old 07-14-2010, 07:48 AM   #3
amoroso
Groupie
amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.
 
amoroso's Avatar
 
Posts: 185
Karma: 1004070
Join Date: Jul 2010
Location: Italy
Device: Kindle for Android, Google Play Books
Quote:
Originally Posted by Hitch View Post
If you include the stylesheet call in the <head> of the html document before you import it, [...]
I wasn't clear, I actually meant an ebook created from scratch with Sigil, not imported from existing HTML files.
amoroso is offline   Reply With Quote
Old 07-14-2010, 10:19 AM   #4
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: 29,782
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:
Originally Posted by amoroso View Post
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.
Sigil starts up with a blank page
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" />
(use the actual file name if you want it to work )

Once Sigil has a sheet for the project, A Sigil-Split/ "Add New" will in include it in the next page
theducks is offline   Reply With Quote
Old 07-14-2010, 05:15 PM   #5
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
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.
Hitch is offline   Reply With Quote
Advert
Old 07-15-2010, 07:38 AM   #6
amoroso
Groupie
amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.
 
amoroso's Avatar
 
Posts: 185
Karma: 1004070
Join Date: Jul 2010
Location: Italy
Device: Kindle for Android, Google Play Books
Quote:
Originally Posted by Hitch View Post
Amaroso, are you good2go now?
Yes, thanks.
amoroso is offline   Reply With Quote
Old 07-15-2010, 09:54 AM   #7
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: 29,782
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:
Originally Posted by Hitch View Post
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?
You forgot to flick your "Stogie" while doing the eyebrow thing

Figuring out, just what Sigil does in different places is my challenge. Not everything works the way I expect it to happen.
theducks is offline   Reply With Quote
Old 07-18-2010, 08:37 PM   #8
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by theducks View Post
You forgot to flick your "Stogie" while doing the eyebrow thing

Figuring out, just what Sigil does in different places is my challenge. Not everything works the way I expect it to happen.
LOL, that's the understatement of the year! I'm nearly always surprised by something with every book I make. I mostly love it, though.

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
Hitch is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:46 PM.


MobileRead.com is a privately owned, operated and funded community.