View Single Post
Old 01-04-2009, 10:39 AM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by brewt View Post
Not bad - how did you build it?
With this CSS:

Code:
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;
}
and this XHTML:

Code:
<p><span class="first"><span class="drop">I</span>n</span> the ancient city of London...</p>
Quote:
Attached is a picture of what it looks like in Calibre, Sony and DE. Not consistent. I can't get onto the Bride's 700 just yet.
The best is the left one... Calibre? The two others fail to align the top line, I think they interpret "line-height: 0.75" by moving down the drop cap, instead of up; I don't know what the specification says here, but all browsers seem to move things up. Also, they fail to tread the "oeb-page-header" property, they should remove "I - The Birth of the Prince and the Pauper" from the page flow at the very least.

Quote:
I can't get anything to open in opera without calling on DE.
Either do as I said on the post (unzip the .epub and index.zip files and open index.html) or use this widget.
Jellby is offline   Reply With Quote