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

(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 lists, with possible values and an example each.

list-style-position

List indentation

List indentation with two values:

1) inside: indented

2) outside: outdented

Values

inside | outside | inherit

Example

list-style-position: inside;

list-style

List formatting

Compact shorthand for the list-style properties (list-style-image, list-style-position and list-style-type, separated by spaces)

Values

[ 'list-style-type' || 'list-style-position' || 'list-style-image' ] | inherit

Example

list-style: url(pfeil.jpg) inside;

list-style-type

List type

Defines the list type

Values

disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit

Example

list-style-type: lower-alpha;

   

 

 

 

back to top