|  06-03-2013, 12:30 PM | #91 | |
| eBook DIYer  Posts: 111 Karma: 10 Join Date: Oct 2012 Location: Europe Device: K4, KF HD 8.9, Readium | Quote: 
 My flow doesn´t work this way. I use always the same css (various) for all my eBooks. I have defined one presentation model with specifc styles I always use. If I discover a need for another class, I include it in my master css. This didn't happen for a while now. But I am sure your way of doing things works fine for you. Chacun fait ce qui lui plaît. | |
|   |   | 
|  06-03-2013, 02:29 PM | #92 | |
| Fanatic            Posts: 580 Karma: 810184 Join Date: Sep 2010 Location: Norway Device: prs-t1,  tablet, Nook Simple, assorted kindles, iPad | Quote: 
  So do you only use class selectors in your stylesheet, and no id selectors? | |
|   |   | 
|  06-03-2013, 02:32 PM | #93 | |
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | Quote: 
 As for the stylesheet, you use classes and not ids. | |
|   |   | 
|  06-03-2013, 02:44 PM | #94 | 
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 Join Date: Dec 2010 Device: Kindle PW2 | |
|   |   | 
|  06-03-2013, 02:47 PM | #95 | |
| Fanatic            Posts: 580 Karma: 810184 Join Date: Sep 2010 Location: Norway Device: prs-t1,  tablet, Nook Simple, assorted kindles, iPad | 
			
			From the w3cschools site: Quote: 
 | |
|   |   | 
|  06-03-2013, 03:04 PM | #96 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			This is the ePub forum. It won't work in ADE. So what I said is correct for ePub. In fact, if you try it with ADE, ADE will take it as an error and none of the CSS will be applied.
		 Last edited by JSWolf; 06-03-2013 at 03:13 PM. | 
|   |   | 
|  06-03-2013, 03:13 PM | #97 | |
| Fanatic            Posts: 580 Karma: 810184 Join Date: Sep 2010 Location: Norway Device: prs-t1,  tablet, Nook Simple, assorted kindles, iPad | Quote: 
 Secondly, it does work in ADE, and is according to spec. | |
|   |   | 
|  06-03-2013, 03:14 PM | #98 | 
| Resident Curmudgeon            Posts: 80,740 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			I was mistaken. It does work in ADE. I had a typo in the CSS that caused it not to work. User error. But to be honest, I don't actually see the use for defining an ID in CSS instead of a class.
		 Last edited by JSWolf; 06-03-2013 at 03:23 PM. | 
|   |   | 
|  06-03-2013, 03:40 PM | #99 | |
| A Hairy Wizard            Posts: 3,395 Karma: 20212733 Join Date: Dec 2012 Location: Charleston, SC today Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire | Quote: 
  I would surmise that "those who create the specs" wanted to keep things ordered and logical when they defined a group style vs. an individual style. In practice things don't always get used as intended, hence we have deprecated styles and tags. I think it's just a matter of technique. I have used the tag selectors to change the way a particular item class is styled...if the change is minor, or if i need to do it to achieve specific functionality. For example to not take up space on a page, but to get sigil to put it in the TOC. h2[title="Copyright Page"] {display:none; margin:0} <h2 title="Copyright Page"></h2> Last edited by Turtle91; 06-04-2013 at 03:38 AM. | |
|   |   | 
|  06-04-2013, 03:21 AM | #100 | |
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | Quote: 
 Have a look at my Tom Sawyer ePub, the chapter title illustrations have a code to wrap the text around them, and since every image is a different size, the code needs to be different. Of course, I could have created a class for each image, but creating a class for something that will never ever have more than one member is as wrong as creating a different id for things that are no different at all  So, in general I agree, classes are to be preferred, but ids have their uses too. | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Error: "can only concatenate list (not "unicode") to list" | bmuesse | Library Management | 2 | 01-11-2013 03:50 PM | 
| epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM | 
| Convertion error txt to epub "IndexError: list index out of range" | economix | Conversion | 6 | 12-25-2011 06:14 AM | 
| How to remove "Fully read" books from "Last Open" list? | pjeanetta | PocketBook | 4 | 12-08-2010 10:30 AM | 
| Suggestion: Don't set "color" tag in .epub css | McAlsop | Calibre | 16 | 06-17-2010 09:13 AM |