06-02-2009, 02:33 PM | #1 |
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Unsetting properties in CSS
Hi all,
I have a feeling this can't be done, but I thought I'd ask anyway. The problem comes when trying to format drop caps and there is some punctuation before the drop cap, as in: «¡Bendito sea el poderoso Alá!» where only the B should be a real "drop cap", but the previous content should remain there, before the B. With the usual code, the drop cap is set as "float", and the punctuation has to be inside the float if it has to keep its place, but only the B has to be big, bold, with a special font or whatever, so the code is something like this: Code:
<p><span class="drop"><span class="predrop">«¡</span>B</span>endito sea el poderoso Alá!»
I wish I could use "font-family:default", or have a selector that targets only ".drop" but not its descendants, or inherit from the grandparent, or something else. Any ideas? Last edited by Jellby; 06-02-2009 at 02:36 PM. |
06-02-2009, 02:41 PM | #2 |
creator of calibre
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
AFAIK, the user is guaranteed to have default serif, sansserif, monospace, cursive and fantasy fonts.
|
06-03-2009, 04:29 AM | #3 | ||
frumious Bandersnatch
Posts: 7,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
I guess I could do something like: Quote:
Code:
<span class="drop cap">B</span> |
||
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some CSS properties not transferring when converting ePub to LRF | megacoupe | Calibre | 2 | 10-15-2010 05:35 PM |
Adding properties to books | IzzyMad | Workshop | 3 | 10-15-2010 11:05 AM |
Editing filenames and properties on the Cybook | brudigia | Calibre | 5 | 05-01-2009 08:08 AM |
Supported HTML/CSS tags and properties | Jellby | Bookeen | 9 | 05-04-2008 04:55 PM |
Changing pdf properties | Puddytat purr | 2 | 02-22-2008 09:27 AM |