Css Drop Caps does not work in an Epub on a Reader
CORRECTION/EDIT:
CSS DROP CAPS DO WORK IN AN EPUB ON A READER
Message 54 of this thread has an epub that it all works in. If you use Calibre to create it using this solution, set your base font size to Zero to make it work correctly there.
Rest of thread preserved for posterity.
Thanks to all who made it work: Jelby, Llasram, Peter Sorotokin, and Kovid Goyal.
-bjc
/////////////////////////////////////////////////////
At least, I haven't seen it. Attached is what happens with this code:
css:
span.first {
font-variant: small-caps;
margin-left: -0.5em;
}
span.drop {
font-size: 400%;
font-weight: bold;
line-height: 0.75;
float: left;
margin: 0 0.125em 0 0;
}
xhtml:
<p><span class="first"><span class="drop">I</span>n</span> the ancient city of London...</p>
Now the idea that Sony needs to change their code-interpretation is probably indisputable, but who is going to call Sony and correct them? And then get them to distribute a fix? Or Adobe (DE has the same problem)?
C'mon, guys, prove me wrong. Oh, and showing something work in a browser on a computer doesn't count.
-bjc
Last edited by brewt; 01-18-2009 at 03:41 PM.
|