top

Values

<length> | <percentage> | <auto>

Applicable to...

All positioned elements (elements that don't have position: static;)

Inherited

No

Description

Top defines the distance between the top of an element and the top of its surrounding block.

Examples

Compatibility

Chrome Firefox Internet Explorer Opera Safari
1.0+ 1.0+ 5.0+ 6.0+ 1.0+




Comment