css margin-top property
Translation results:
margin
English [ˈmɑ:dʒɪn] American [ˈmɑ:rdʒən]
n. Edge, range; limit; profit, surplus; (outside the version) ) of the blank
vt. Leave a margin; become the side of...; add a margin to, surround; add a margin for...
Plural: margins
top
英[tɒp] 美[tɑ:p]
n. Top, top; (box) cover, (book pages, etc.) upper column; chief; top
adj.The highest;top;first-class;the largest
vt.form the top;reach the top of...;be at the forefront of...;leader
vi.Summary;Beyond ;Towering;End
Third person singular: tops Plural: tops Present participle: topping Past tense: topped Past participle: topped
css margin-top propertysyntax
What does margin-top mean?
margin-top means top margin, which is a type of CSS attribute. It is used to set the top margin of elements in web pages. For example: margin-top: 50px; negative values are allowed. All major browsers support the margin-top attribute.
Function: Set the top margin of the element.
Note: Negative values are allowed.
Note: All major browsers support the margin-top attribute.
css margin-top propertyexample
<html> <head> <style type="text/css"> p.topmargin {margin-top: 50px} </style> </head> <body> <p>这个段落没有指定外边距。</p> <p class="topmargin">这个段落带有指定的上外边距。</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance