CSS Margin-top Property

Posted The: 25/04/2008 At: 18:24

Last Edited: 15/08/2008 At: 18:49

margin-top is used to set, or change the default top-margin of a given element, for instance h1 may have a top-margin by default.

Possible Values

Example:

The following example removes the top-margin of h1 headings.

h1 {
  margin-top: 0;
}

Inherited? NO!

Comments: [0]

© Brugbart Webdesign