Skip to content

EPUB's cover.xhtml body should have id="cover" #1758

@elmimmo

Description

@elmimmo

The body element of the document cover.xhtml should have a unique attribute like id="cover" in order to be able to create a CSS style that targets it only.

One will most probably always want to reduce default page margins to zero for that document only, in order for ereaders to display that illustration from edge to edge of the screen (or at the very least as large as each ereader allows), or apply Adobe Digital Editions-only CSS oeb-column-number: 1 so that the cover is always displayed centered even when the ereader defaults to displaying facing pages.

Currently, the sole child of cover.xhtml's body element does have a distinctive attribute (<div id="cover-image">) but that does not help in being able to reduce its parent's default margins, which will pretty much always be non-zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions