XML technologies / ePUB / CSS essentials / Important CSS properties / Height and width

(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 element height and width, with possible values and an example for each.

height

Height

Defines an element’s height

Values

<Länge> | <Prozent> | auto | inherit

Example

height: 4cm;

width

Width

Sets an element’s width

Values

<Länge> | <Prozent> | auto | inherit

Example

width: 25%;

   

 

 

 

back to top