Skip to content
EPUBCheck · Stylesheets

CSS-006

Updated:

EPUBCheck CSS-006 is a usage message: “CSS selector specifies fixed position.” A CSS rule uses position: fixed, which reading apps handle inconsistently in paginated text.

The official message

CSS selector specifies fixed position.

Default severity
Usage. Informative only and hidden by default: it appears when EPUBCheck runs with -u (--usage). It does not make the EPUB invalid.
EPUBCheck version
5.4.0

Typical causes

  • Styles copied from a website, such as fixed headers.

How to fix it

  • Remove position: fixed or replace it with normal flow.

Terms used here

Other CSS messages

  • CSS-007 Font-face reference "…" refers to non-standard font type "…".
  • CSS-004 CSS documents must be encoded in UTF-8, detected …;
  • CSS-008 An error occurred while parsing the CSS: ….
  • CSS-003 CSS document is encoded in UTF-16. It should be encoded in UTF-8 instead.
  • CSS-002 Empty or NULL reference found.
  • CSS-001 The "…" property must not be included in an EPUB Style Sheet.

Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.

FAQ

What does EPUBCheck CSS-006 mean?

EPUBCheck CSS-006 is a usage message: “CSS selector specifies fixed position.” A CSS rule uses position: fixed, which reading apps handle inconsistently in paginated text.

Is CSS-006 an error?

CSS-006 is reported as usage by default. Informative only and hidden by default: it appears when EPUBCheck runs with -u (--usage). It does not make the EPUB invalid.