# EPUBCheck HTM_059: viewport property repeated, how to fix it

Source: https://epubcc.com/epubcheck/htm_059/ (updated 2026-11-04)

EPUBCheck HTM_059 is an error message: “Viewport "…" property must not be defined more than once, but found values […].” A viewport defines the same property twice with different values. EPUB forbids more than one width or height definition in a viewport meta element, and EPUBCheck lists the values it found.

- Official message (EPUBCheck 5.4.0): Viewport "%1$s" property must not be defined more than once, but found values [%2$s].
- Default severity: Error

## Typical causes

- Two width or two height values in one viewport declaration, often after editing the size by hand.
- A template value left in place and a new value added after it.

## How to fix it

1. Open the file EPUBCheck names (the message gives the path, line and column) in a text or EPUB editor such as Sigil, or unzip the EPUB and open it there.
2. Keep one width and one height in the content attribute, with the size the page was designed for.
3. Check the other fixed-layout pages, which were often made from the same template.
4. Rebuild the EPUB and run EPUBCheck again to confirm the message is gone.

## When it's not this

If there are two whole viewport meta elements rather than two values in one, see HTM_060b.

## Sources

- EPUB 3.3, §8.2.2.6 Content document dimensions: https://www.w3.org/TR/epub-33/#sec-fxl-content-dimensions (read 2026-11-04)

Message text and severity: EPUBCheck (W3C, BSD-3-Clause). Explanation: EpubCC.
