View Single Post
Old 03-17-2021, 12:38 PM   #1
GuyBooth
Junior Member
GuyBooth began at the beginning.
 
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot 1.png
Views:	131
Size:	19.1 KB
ID:	186018   Click image for larger version

Name:	Screenshot 2.png
Views:	131
Size:	15.3 KB
ID:	186019  

Last edited by GuyBooth; 03-17-2021 at 12:42 PM.
GuyBooth is offline   Reply With Quote