margin

margin
CSS margin Property
The CSS margin property is CSS shorthand for specifying margin-topmargin-rightmargin-bottom, and margin-left properties.
CSS CODE EXAMPLE
<style type="text/css">
#div1 {
    margin: 30px 50% 20px 20%; /* top right bottom left */
}
#div2 {
    margin: 10px 25% 20px 20%; /* top right bottom left */
}
.divClass { background:#DFEFFF; border:#5BADFF 1px solid; padding:10px; }
</style>
<div id="div1" class="divClass">div content ...</div>
<div id="div2" class="divClass">div content ...</div>
 
div content ...
div content ...

Possible Values:

See the following individual properties for values:
margin-top
margin-right
margin-bottom
margin-left

0 Response to "margin"

Post a Comment