javascript BODY topMargin

topMarginNN n/a IE 4 DOM n/a  

Read/Write  

Provides the width in pixels of the top margin of the body element in the browser window or frame. By default, the browser inserts a small margin to keep content from abutting the top edge of the window. Setting the property to an empty string is the same as setting it to zero.

 
Example
 
document.body.topMargin = 16;
 
Value

Integer of pixel count.

 
Default

15 (Windows); 8 (Macintosh).


336,Nickname,Homepage or email,Comments here,Add comment