|
|
#1 |
|
Member
![]() Posts: 16
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura HD
|
Book viewer displays background incorrectly
Hello,
I set up background in book viewer using user style sheet but background is displayed on first 3 pages of each chapter. My settings Code:
body { background-image:url("https://xxx/pics/background.jpg");
background-size:100% 100%;
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,659
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need the background to repeat. THis is because the viewer creates pages by converting the body into columns using css 3 columns properties. So the body stretches off the screen from left to right.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Member
![]() Posts: 16
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura HD
|
Quote:
Yet this does not work. |
|
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,659
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I have to say I have never actually tried using background image with the browser viewer. I'd start with something simple like:
Code:
html {
background-image: whatever;
background-size: 100vw 100vh;
}
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converted epub displays italics incorrectly on Moon Reader | dtc87 | Conversion | 18 | 07-26-2017 08:15 PM |
| Reader in 2.75 displays margins incorrectly on last page of chapter | nabsltd | Calibre | 2 | 12-27-2016 01:11 AM |
| Sigil 0.9.7: mouse pointer displays incorrectly | yadpes | Sigil | 1 | 11-07-2016 10:09 AM |
| About the background in ebook-viewer | Elancrom | Calibre | 7 | 11-20-2015 08:40 AM |
| Kindle Previewer Displays HTML lists incorrectly when converting from EPUB | Gandharva | Kindle Developer's Corner | 1 | 09-01-2011 07:52 PM |