Menu Riverview Church

TOP

The top property specifies how far a box's top margin edge is offset below the top edge of the box's containing block.

SYNTAX

CSS

top: value;

JS

object.style.top = "value";

VALUES

<'top'> = auto | <length-percentage>
auto

Automatically specified by the user agent.

<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

INITIAL

auto

EXAMPLES

AUTO

LENGTH

PERCENTAGE

JS

INTERNAL

bottom

left

position

right

EXTERNAL

World Wide Web Consortium (W3C)