|  01-13-2011, 06:43 AM | #1 | 
| eBook Designer  Posts: 17 Karma: 10 Join Date: Jul 2010 Location: Brussels Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer | 
				
				[done] Multiple CSS
			 
			
			Hello, Is there a specific way to use muliple CSS's in ePub ? I do have two CSS, standard names, section ponting to the correct CSS But in ADE and other reader, it's like the CSS's doesn't exist anymore  Thanks GE Last edited by Gray Eminence; 01-13-2011 at 10:15 AM. | 
|   |   | 
|  01-13-2011, 06:51 AM | #2 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			You can use as many CSS files as you want, but you have to reference them in the XHTML files. Look for something like: Code: <head> <title>Part IV — Chapter XII</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> </head> | 
|   |   | 
| Advert | |
|  | 
|  01-13-2011, 07:02 AM | #3 | ||
| eBook Designer  Posts: 17 Karma: 10 Join Date: Jul 2010 Location: Brussels Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer | 
			
			I do have the following, which work in Sigil : Quote: 
 and Quote: 
 And still, ADE seems to ignore them   | ||
|   |   | 
|  01-13-2011, 07:34 AM | #4 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			There might be a syntax error, misspelling or unrecognized keyword in the CSS file, ADE tends to ignore everything as soon as it finds something it doesn't like.
		 | 
|   |   | 
|  01-13-2011, 08:19 AM | #5 | 
| eBook Designer  Posts: 17 Karma: 10 Join Date: Jul 2010 Location: Brussels Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer | 
			
			Definitivelly not a syntax issue "in the css", it look smore like a pointing issue. I did copy all second CSS code in the first one and it works. The style001.css works If I rename it to style0001.css (all sections pointing to it), it's not working anymore. Like ADE only abble to accept the style001 and nothing else. What sounds illogic based on your comments, it should work  PS : i renamed the 0001 in 001, and surprise, it doesn't work back, looks like Sigil is messing something to the pointing codes Last edited by Gray Eminence; 01-13-2011 at 08:26 AM. | 
|   |   | 
| Advert | |
|  | 
|  01-13-2011, 08:26 AM | #6 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			Do you also change the name in the OPF file?
		 | 
|   |   | 
|  01-13-2011, 08:43 AM | #7 | 
| eBook Designer  Posts: 17 Karma: 10 Join Date: Jul 2010 Location: Brussels Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer | |
|   |   | 
|  01-13-2011, 09:52 AM | #8 | |
| eBook Designer  Posts: 17 Karma: 10 Join Date: Jul 2010 Location: Brussels Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer | 
			
			Seems it's correct in the opf  Quote: 
   | |
|   |   | 
|  01-13-2011, 10:10 AM | #9 | 
| eBook Designer  Posts: 17 Karma: 10 Join Date: Jul 2010 Location: Brussels Device: PRS-650 / NookGlow / Paperwhite / iPad / AsusTransformer | 
			
			case-sensitive   When sigil create the original CSS, it's called style001 When it creates a new one, it's called Style0001 (note the S instead of s) Of course, when I edited my section link , I just added a 0, and it works fine in Sigil. But ADE seems to be more case-sensitive than Sigil. There is something weird in Sigil to maybe change in a future release (the first with s and next ones with S is strange to me) Thank you Jellby for you appreciated help and time  Cheers, GE | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM | 
| <Command Line> Add multiple books in multiple formats | himitsu | Calibre | 8 | 09-25-2010 11:07 PM | 
| Multiple CSS Files | jjm6383 | Sigil | 2 | 06-28-2010 05:44 PM | 
| Bug: entries with multiple formats trigger multiple conversions | flinx1 | Calibre | 12 | 05-21-2010 06:23 AM | 
| Help with CSS, anyone? | rogue_ronin | Workshop | 36 | 08-14-2009 09:28 PM |