View Single Post
Old 07-12-2024, 07:02 AM   #9732
fishing_forever
Junior Member
fishing_forever began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra 2
Hello, I posted a little while ago about having problems with the contents of the title page going off of the screen on my ereader. I found that it was actually dependent on whether the fic has a cover or not. If the fic has a cover, it would have proper margins.

I tried to remedy this by adding this to the personal.ini:
Code:
add_to_output_css:
 body.fff_titlepage { width: 100%%;
                      margin: auto;
                      padding: 0;}
This fixes fics without covers (or at least, makes it manageable), but screws up fics with covers.

I was wondering if there was some way to have a conditional in the personal.ini or Calibre somehow that would add the CSS if the fic didn't have a cover and not add it if so. There is the metadata value of cover_image, which would be useful to use.

This isn't too big of a deal because I could just use the Generate Cover plugin for all the fics, but I'd rather not because I do like only inserting specifically made covers rather than a template. Thank you for any help!
fishing_forever is offline   Reply With Quote