Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images improperly sized on Kobo Clara HD #57

Open
mattjraives opened this issue Apr 11, 2024 · 0 comments
Open

images improperly sized on Kobo Clara HD #57

mattjraives opened this issue Apr 11, 2024 · 0 comments

Comments

@mattjraives
Copy link

This may well apply to other e-readers but I cannot confirm this.

Cover images, and Pale bonus material images, are not properly resized to fit the screen.

I've fixed this manually for cover images by adding the following to the stylesheet

.imgbox { display: grid; height: 100%; }
.center-fit {max-width: 100%; max-height: 100vh; margin: auto; }

and using it in the cover.xhtml file; e.g.,

<div class="imgbox">
<img class="center-fit" src="OEBPS/cover.png" alt="cover"/>
</div>.

IMG_20240411_111252985_MP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant