Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)

Quite a few CSS style rules rely on dimensional properties in one form or another. It would be difficult to size elements with them.

height

Usage

Sets the height of an element.

Values

auto, length, %.

line-height

Usage

Sets the distance between lines of elements.

Values

normal, length, %.

max-height

Usage

Sets the maximum height of an element.

Values

none, length, %.

max-width

Usage

Sets the maximum width of an element.

Values

none, length, %.

min-height

Usage

Sets the minimum height of an element.

Values

length, %.

min-width

Usage

Sets the minimum width of an element.

Values

length, %.

width

Usage

Sets the width of an element.

Values

auto, length, %.

Категории