HTML CSS Reference/HTML Attributes Reference/topmargin

Материал из Web эксперт
Перейти к: навигация, поиск

"topmargin" Example

    
<HTML>
<head><Title>Example For topmargin</Title></head>
<BODY>
<body id="myBody" bgcolor="#EEEEEE" text="#000000" topmargin="100px">
</BODY>
</HTML>



topmargin is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<body>                                                        |
+----------------+--------------------------------------------------------------+



"topmargin" Syntax and Note

Note:
    
This attribute sets top margin in pixels. 
The default value is 15.
    
Syntax:
    
<body topmargin="value"> . . . </body>