XML technologies / ePUB / CSS essentials / Important CSS properties / Display

(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)

The table lists the main CSS properties for displaying elements, with possible values and an example each.

display

Display

Controls element display. Generally useful values include:

1) block: treats the element as a block and always causes a line break

2) inline: does not wrap and assumes an inline element

3) inline-block: initially tries display as a block and wraps only when lines overflow

4) list-item: also adds a list marker

5) run-in: displays according to context as a block element or inline element

6) OPS extensions: oeb-page-head and oeb-page-foot

Values

inline | block | list-item | run-in | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit

Example

display: inline-block;

visibility

Visibility

Controls whether an element is visible or hidden with a placeholder

Values

visible | hidden | collapse | inherit

Example

visibility: hidden;

oeb-column-number

Columns (OPS extension)

Number of columns (see CSS property extensions in OPS)

Values

<Spaltenanzahl> | auto

Example

oeb-column-number: 2;

   

 

 

 

back to top