![]() |
#1 |
Browser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Standardised CSS?
Pardon my newbie questions. Thanks for any help.
Is there a way to store or import a standardised CSS to use for new ePubs, like a template function? Or is it a matter of copying and pasting text from one ePub's CSS file to another? And if I want to make books, say, in the same series all use the same formatting ... is there an easy way to apply to imported paragraph styles? or is it a matter of going through each section independently, and doing a find/replace on all the style terms? |
![]() |
![]() |
![]() |
#2 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
In Sigil if you right-click on the styles folder on the book browser, you will have an option to add an existing file.
So if you have already got a created CSS file (I have one with all my standard CSS content in it so I can delete what I don't need after the epub is ready), you choose this option and navigate to where the file is and select it. Now it will be loaded into you epub, you only will need to link it in (needs to be done manually at the moment). |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Browser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Thanks matey,
I thought I'd tried it, since I know you can add book cover images that way. I thought it hadn't worked, which is why I was asking. But maybe I just need to drink less rum. (Or more!) Appreciated. Oh wait ... so how do I make a template CSS in the first place? I can't export one out of Sigil (that was the other thing I was going to ask!). Is a CSS file just a text file renamed? Do i just copy/paste into notepad and save it? |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
You got it. Just use whatever text editor you want and then either save it as a CSS file if the editor allows it or save as a txt file and then change the extension.
Last edited by ghostyjack; 08-09-2010 at 11:02 AM. |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
There is a way of getting the CSS file out of the created epub, all you need to do is get your zip program (I use Winrar) to open the file and then go to OEBPS\Styles\ folder and then extract (or drag-n-drop) the css file you find in there.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,326
Karma: 58000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Open the CSS in sigil Select All (ctrl-a) Copy Then paste int your text editor. I keep snippets of code and styles in a simple text file. I copy and paste into Sigil as needed. Lean, Mean CSS ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS glitch | crutledge | Sigil | 2 | 05-16-2010 08:05 AM |
Path to CSS | PlainBobMax | Calibre | 2 | 03-08-2010 10:55 PM |
help with css | bobcdy | ePub | 2 | 02-13-2010 11:59 AM |
RSS and CSS ? | zelda_pinwheel | Calibre | 10 | 10-28-2009 11:15 PM |
Help with CSS, anyone? | rogue_ronin | Workshop | 36 | 08-14-2009 09:28 PM |