Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 05-11-2025, 10:14 AM   #1
Outfit6073
Junior Member
Outfit6073 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2025
Device: calibre e-book viewer
Tiny text area & huge bottom margin

I'm on Ubuntu 24.04.2 and Calibre 8.4. All of my epubs display only a few lines of text, then the footers, with a huge bottom margin. The inspector shows this <div> element within body>div#view:
Code:
<div style="max-height: 100dvh; width: 100dvw; height: 100dvh; overflow: hidden; display: flex; align-items: stretch">
In the inspector, the max-height, width and height values are stricken out and say "Invalid property value". In the computed styles section of the inspector, it shows height=190px.

Within the div quoted above, if I change the height value from "100dvh" to anything else, like "500px", then it works, the text area enlarges to the 500px size.

However, if I add a custom style in preferences like this, it has no effect:
Code:
 div#view>div{
    max-height:500px !important;
    height:500px !important;
}
I would like to make it so the text area fills the window and adjusts as the window size is change.
Outfit6073 is offline   Reply With Quote
Old 05-11-2025, 10:17 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,260
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are you using a distro calibre package? If so uninstall it and install the official calibre binaries and you will be fine.
kovidgoyal is offline   Reply With Quote
Old 05-11-2025, 10:44 AM   #3
Outfit6073
Junior Member
Outfit6073 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2025
Device: calibre e-book viewer
And just like that, it's fixed. Thank you!!
Outfit6073 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Top-margin (bottom-margin?) for Kobo? Notjohn Sigil 14 02-28-2015 06:43 AM
Bottom margin & Conversion Chris_Snow Calibre 8 10-29-2013 05:17 AM
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; } cybmole Conversion 15 02-12-2011 11:57 AM
Is there a way to stop the faded text at the bottom & top in horizontal mode? Sunspark Sony Reader 9 03-25-2010 03:36 PM
calibre ignore margin-top and margin-bottom bender Calibre 2 12-11-2009 06:58 AM


All times are GMT -4. The time now is 06:01 PM.


MobileRead.com is a privately owned, operated and funded community.