View Single Post
Old 01-08-2009, 01:05 PM   #1
brewt
Boo-Frickety-Hoo-Erizer
brewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enoughbrewt will become famous soon enough
 
brewt's Avatar
 
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
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
Attached Thumbnails
Click image for larger version

Name:	P1072542.jpg
Views:	1368
Size:	587.0 KB
ID:	20836  

Last edited by brewt; 01-18-2009 at 03:41 PM.
brewt is offline   Reply With Quote