Cermify · Error Library · KDP

Package Structure · E-CSS

Risky CSS for Kindle layout

Your stylesheet references an external CSS resource or forces global text justification, which can create Kindle upload or layout problems.

Severity
warning
Automatic repair
Supported
Submission impact
KDP: warning
Rule ID
E-CSS
Error: Risky CSS for Kindle layout
Category: Package Structure
Severity: warning
Auto Repair: Supported
Rule ID: E-CSS
Affected: KDP=warning, Apple=warning, Google=pass, Kobo=pass
Check this automatically with Cermify

Why this happens

How platforms treat it

PlatformResult
KDPwarning
Apple Bookswarning
Google Playpass
Kobopass

How Cermify detects it

  1. Scan CSS and style attributes for external @import / remote url().
  2. Detect aggressive global justification and other known Kindle-risk patterns.
  3. Record stylesheet path and rule excerpt.
  4. Classify as warning unless paired with hard validity failures (then see E-RSC005).

Automatic repair

Cermify can inline or drop remote imports when a local copy exists, and soften global justify rules. Layout-sensitive design CSS is not fully rewritten automatically.

Manual fix

  1. Bundle all stylesheets inside the EPUB and declare them in the manifest.
  2. Replace remote @import with local files.
  3. Avoid forcing full-book justification; let the reading system handle alignment when possible.
  4. Preview on Kindle Previewer with several font sizes.

Examples

Keep CSS inside the package; avoid global justify locks.

Incorrect

@import url("https://cdn.example.com/book.css");
body { text-align: justify !important; }

Correct

@import url("../styles/book.css");
p.body { /* optional local class; avoid global !important justify */ }

FAQ

Is justify always wrong?

Not always on specific classes, but global forced justify often conflicts with Kindle user preferences and is flagged as risky.

Can I use Google Fonts CSS URLs?

No for KDP EPUB—remote CSS/fonts are unreliable offline and may fail checks. Embed licensed font files instead (see E-FONT).

Does E-CSS mean my book will be rejected?

Usually a warning. Severe invalid CSS may also raise E-RSC005 and block upload.

Related errors

References