11-21-2012, 09:45 PM | #1 |
Connoisseur
Posts: 77
Karma: 10
Join Date: Aug 2010
Location: Murcia/Spain
Device: Android 12
|
master css for every chapter
Is there anyway to setup a master css file/template for every single html page/chapter you create? If so how can I do it?
|
11-21-2012, 11:25 PM | #2 | |
Well trained by Cats
Posts: 29,785
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:
1 CSS for all chapters? or a separate CSS for each chapter. (using Sigil 6): for the single CSS: Create or add the CSS (use File menu) once in place, Select 1 or more HTML files Right click : Link stylesheets: TICK the sheets to link (could be more than 1): OK |
|
11-22-2012, 07:24 AM | #3 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
This action puts a link statement for that particular stylesheet in the <head> of each section of your book.
This may not always be desirable, for things such as indents. Indents are great in text, but not so great in an index or captions. So be careful what you put in your master and consider using a modified master for areas where you don't want indents or something else that is not universally applicable. The link action described above is a one time thing, so you can take out the link if you don't want it and use the same action to link to a different stylesheet that suits your needs for a particular section. It works very easily doing this. |
11-22-2012, 10:26 PM | #4 | |
Connoisseur
Posts: 77
Karma: 10
Join Date: Aug 2010
Location: Murcia/Spain
Device: Android 12
|
Quote:
|
|
11-22-2012, 10:33 PM | #5 | |
Well trained by Cats
Posts: 29,785
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:
a typical book Only has 1 (shared CSS, but you need to set the link into the file. You are not limited to a Single CSS for a single HTML file either. If one file has a special, complex style, I leave those in a seperate CSS and only link that to the file that nees it, thus saving the need to parse a BIG css for every file. |
|
11-23-2012, 08:31 AM | #6 |
Wanderer
Posts: 106
Karma: 472218
Join Date: Jan 2011
Device: Kindle 3, PaperWhite 2
|
If your master document is one html file that you bring into Sigil, add the link to the css file. Then when you split the file up in Sigil, it will automatically include everything in the head section for each of the split files.
|
11-23-2012, 08:39 PM | #7 | |
Connoisseur
Posts: 77
Karma: 10
Join Date: Aug 2010
Location: Murcia/Spain
Device: Android 12
|
Quote:
Thanks mncowboy for this tip, I'll combine your tip with theducks in the future to convert several Word document to epub. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What are SGF Chapter Marker and Chapter Break? | webphone | Sigil | 1 | 05-25-2011 02:43 PM |
Adding new chapter, what about CSS link? | spaze | Sigil | 3 | 02-24-2011 05:35 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |
CSS wacky p indent post-chapter split? | Hitch | Sigil | 0 | 06-17-2010 08:59 PM |
CSS & regex for chapter titles | hpstricker | Calibre | 3 | 07-17-2008 10:13 AM |