![]() |
#16 |
Connoisseur
![]() Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Here is what I finished up using
<span class="first-letter">F</span> css .first-letter { display:block; float:left; font-size: 5em; line-height:0.8em; color:#bf253c; font-weight:normal; } |
![]() |
![]() |
![]() |
#17 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Here's what I use to replace all dropcap codes, since dropcaps are easily screwed up during conversion:
.dropcap { display: inline; font-weight: bold; font-size: 2em; line-height: 0; } |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Your code works with ePub, but not KF8/Mobi. |
|
![]() |
![]() |
![]() |
#19 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
I know it's not a dropcap, silly. That's why I said I "replace" all dropcap codes with these codes. It works on ePubs, and that's all I use, so it doesn't matter to me that it doesn't work with Mobi or KF8, which I will never ever use. (I had edited my initial post within seconds to change it from "use" to "replace," so you obviously hadn't refreshed the page before you responded with your usual annoying response.)
Last edited by deback; 02-14-2020 at 09:22 AM. |
![]() |
![]() |
![]() |
#20 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
I just converted one of my ePub files (with the enlarged first letter codes I posted above) to Mobi, and the first letter looks fine in Kindle. It's perfect and looks just like the first letter in the ePub file. So, if I ever decide to read Mobi files, all the enlarged first letters will be perfect, contrary to what JS Wolf said above.
Last edited by deback; 02-14-2020 at 08:13 PM. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting AZW3 to Epub | Lyn2012 | Conversion | 17 | 10-06-2014 08:47 AM |
Raised Drop Cap Image Followed by Small Caps | RyanMcSwain | ePub | 10 | 09-04-2014 10:12 AM |
Drop cap bug on Paperwhite | dgatwood | Kindle Formats | 11 | 04-10-2014 04:14 AM |
Aura HD Drop Cap coding help, please | MacEachaidh | Kobo Reader | 13 | 08-15-2013 01:18 PM |
Using CSS in Word to make a Drop Cap work in an Epub | brewt | ePub | 3 | 01-31-2009 06:00 PM |