You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Seeking help: Full-page dynamic framing and background color in Reflowable EPUB 3 (KDP)
#3741
I am finishing a non-fiction EPUB 3 for Amazon KDP (approx. 230 pages, including B&W PNG illustrations). I am committed to a reflowable layout, but I am struggling with a specific aesthetic requirement that defies standard behavior.
The Goal:
A consistent background color (Papaya) across the entire book.
A solid 1px frame that remains visible and contains the content on every single screen/page, regardless of the user's font size settings.
Use of the maximum available viewport without triggering vertical scrolling.
The Problem:
In most previewers and Kindle devices, the frame breaks. We are seeing "scrolling" behavior where the bottom border disappears, or the horizontal borders "leak" into the next page. Essentially, the frame is being treated as a continuous box rather than a per-page container.
Approaches we have tried unsuccessfully:
Applying border and background-color to the body and html tags with box-sizing: border-box.
Using a "container div" with height: 100vh or min-height: 100% (this often causes content cut-off or forces empty pages).
Using vh and vw units for padding and margins to keep the frame within view.
The Question:
Is there a way to force a reflowable engine to treat a border as a "page-level" element?
I’ve considered using a border-image or an SVG background, but I am concerned about how this scales when the user increases the font size.
Has anyone successfully implemented a "framed page" look in reflowable Kindle books without resorting to Fixed Layout? I would appreciate any snippets or insights on how to handle the CSS box model specifically for Kindle's rendering engine (KFX/AZK).
This discussion was converted from issue #3475 on August 03, 2026 08:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I am finishing a non-fiction EPUB 3 for Amazon KDP (approx. 230 pages, including B&W PNG illustrations). I am committed to a reflowable layout, but I am struggling with a specific aesthetic requirement that defies standard behavior.
The Goal:
A consistent background color (Papaya) across the entire book.
A solid 1px frame that remains visible and contains the content on every single screen/page, regardless of the user's font size settings.
Use of the maximum available viewport without triggering vertical scrolling.
The Problem:
In most previewers and Kindle devices, the frame breaks. We are seeing "scrolling" behavior where the bottom border disappears, or the horizontal borders "leak" into the next page. Essentially, the frame is being treated as a continuous box rather than a per-page container.
Approaches we have tried unsuccessfully:
Applying border and background-color to the body and html tags with box-sizing: border-box.
Using a "container div" with height: 100vh or min-height: 100% (this often causes content cut-off or forces empty pages).
Using vh and vw units for padding and margins to keep the frame within view.
The Question:
Is there a way to force a reflowable engine to treat a border as a "page-level" element?
I’ve considered using a border-image or an SVG background, but I am concerned about how this scales when the user increases the font size.
Has anyone successfully implemented a "framed page" look in reflowable Kindle books without resorting to Fixed Layout? I would appreciate any snippets or insights on how to handle the CSS box model specifically for Kindle's rendering engine (KFX/AZK).
Thanks in advance for your expertise!
All reactions