Margin and Padding Properties
What it does:
The margin and padding properties are very similar, with the exception that margins are transparent and IE can't seem to get padding right all the time. This property works much like the border property: you can specify the top, right, bottom, and left (in that order) padding/margins. If one value is absent, the value across from it is used.
HTML Equivalent:
None
Values:
(percentage): A percentage of the width of whatever it's in.
(value): A specific value, usually pixels, of the width of the padding/margin.
Example:
External Style Sheet: p.info {padding: 5px 2px;}
In-line: <p style="margin: 0px 0px 0px 15px;">
CSS Properties: Contents
|
::Fonts font-style font-weight font-family color |
::Text text-align text-decoration text-transform text-shadow |
::Backgrounds background-color background-image background-repeat background-attachment |
| ::Scrollbars | ::Dimensions | ::Margins and Padding |
|
::Borders Border Border-width Border-style |














