CSS Margin Property

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

Last Edited: 30/04/2009 At: 20:55

The margin property, is the css short-hand way of specifying margin.

Possible Values

Example:

This example sets the margin in the following format: Top Right Bottom Left.

p {
  margin: 1em 2em 4em 3em;
}

The above is the equilivant of:

p {
  margin-top: 1em;
  margin-right: 2em;
  margin-bottom: 4em;
  margin-left: 3em;
}

Inherited? NO!

Comments: [0]

© Brugbart Webdesign