Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

topmargin attribute | topMargin property

Sets or gets the margin for the top of the document.

Syntax

HTML<element topmargin="p" ... >
JavaScript

p = object.topMargin

 

Property values

Type: Variant

the top margin of the body, in pixels.

15

Default value.

Remarks

If the value is set to "0" or "", the top margin is on the top edge of the window or frame.

By default, when you set the value of this property, the opposite margin is set to the same value.

See also

body

 

 

Show:
© 2014 Microsoft