asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > TOPMARGIN Attribute

TOPMARGIN Attribute | topMargin Property


Internet Explorer® only.

Sets or retrieves the top margin for the document BODY relative to the page.

Syntax

Inline <body TOPMARGIN = iMargin...>
Script body.topMargin = iMargin ]

Possible Values

iMargin Integer specifying the top margin of the body, in pixels.

The property is read/write with a default value of 15.

Remarks

If the value is set to zero [ 0 ] or an empty string [ "" ] , the top margin will be exactly on the top edge of the window or frame.

Applies To

BODY

See Also

leftMargin



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note