Name
TOPMARGIN — NN n/a IE 3 HTML n/a
Synopsis
TOPMARGIN=”integer"Optional
Establishes the amount of blank space between the top edge of the
content area of a window and the top edge of the content. This
attribute offers somewhat of a shortcut to setting the
margin-top style sheet attribute for the
BODY element. As the outermost parent container in
the element hierarchy, this attribute setting fixes the top margin
context for all nested elements in the document. On both Windows and
Macintosh versions, setting the TOPMARGIN
attribute to zero or an empty string ("") pushes
the content to the very top of the document content region.
Example
<BODY TOPMARGIN="0">... </BODY>
Value
A string value of the number of pixels of clear space at the top of the document. A value of an empty string is the same as zero.
Default
15 (Windows); 8 (Macintosh).
Object Model Reference
- IE
[window.]document.body.topMargin
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access