CSS Margin Properties
SmartCSS ™ software is mainly based on the CSS box model. The CSS box model represents every element on a web page which contains four components:
- The element.
- The padding around the element.
- The border around the padding.
- The margin around the border.
The CSS margin properties define the space around the element which includes the padding and the border values.
CSS Border Properties
Margin (margin-top margin-right margin-bottom margin-left)
margin-top (auto *length )
margin-bottom (auto *length )
*Length - Relative
em The computed font-size.
ex The height of a lowercase "x".
px Pixels, relative to the viewing device.
% Percentage.
Or
*Length - Absolute
in Inches (1 inch = 2.54 centimeters).
cm Centimeters.
mm Millimeters.
pt Points (1 point = 1/72 inches).
pc Picas (1 pica = 12 points).
About the Author
Mark Tessen software engineer
|