![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2021
Location: Toronto, Canada
Device: Kobo
|
Problem with Frame in Calibre
I am trying to show a letter at the bottom of a frame. To do this I have created a frame class ".lasssframe_1" with a blue background so it can be seen, and a class for the text inside it called ".lasss_0":
.lasssframe_1 { background: #b0c4de; height:3.3em; display: block; float: left; overflow: hidden; text-indent: 1.5em; margin: 0; padding: 0em .3em 0em .1em } .lasss_0 { display: block; font-size: 2.9em; text-indent: 0; margin: 14% 0 0 0; } The code in the html page looks like this (the lasss_18 class is simply text with no indentation): <div class="lasssframe_1"><p class="lasss_0">D</p></div> <p class="block_15">*</p> <p class="lasss_18">o you want the clock?”</p> <p class="lasss_18">I finally raised the subject, because one of us had When I first created the classes and applied them, I thought it was working as I wanted. The big letter in the frame was cut off at the bottom as I wanted it to be (shown here in Screenshot 1) to demonstrate the problem. Now I find in Calibre an inconsistency: If I force the class to recompile by removing and re-adding a semicolon, for example, it looks fine in the file preview. But if I return to the HTML page and click on the letter that is in the frame, the file preview page changes and the framed letter is no longer pushed down the way I want. This is shown in Screenshot 2. I have two problems here: 1: It isn't behaving the way I want, or expect. 2: The file preview is behaving inconsistently. In my Kobo, sadly it doesn't show in the mode I want. Can anyone explain either or both of these so I can fix my problem? I am new with Calibre, so forgive me if this is something obvious that a newbie doesn't understand. Thanks Guy Last edited by GuyBooth; 03-17-2021 at 12:42 PM. |
![]() |
![]() |
![]() |
#2 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Think like you're using html version 1. Things like float and overflow are either off the table or inconsistently implemented.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
This question probably belongs in the ePub forum, where there have previously been a lot of discussion of dropped caps. As I recall, there is no easy way to implement them successfully for all e-readers. I don’t think I have ever seen them in any of the ePubs I have bought, I assume because the authors/publishers know better than to even try.
Last edited by ShellShock; 03-19-2021 at 02:27 PM. |
![]() |
![]() |
![]() |
#4 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,030
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
1) There is no universal way to make it work.
2) Even on paper books it's a bit of design affectation of an old fashioned nature and reduces readability. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
K4 K4NT - Help with Picture Frame | c0c01 | Kindle Developer's Corner | 5 | 05-19-2019 07:05 AM |
Aura Frame covering the screen | Jellby | Kobo Reader | 16 | 06-23-2014 09:55 PM |
Historical YA - Woman in a Frame | charlesatan | Self-Promotions by Authors and Publishers | 0 | 07-12-2012 02:53 AM |
Black or white frame? | owly | Which one should I buy? | 8 | 05-27-2011 09:34 PM |