CSS2 Margin Properties
This is a complete reference guide for web developers where haved we listed all the CSS properties related to margin defined in the World Wide Web Consortium's Recommended Specification for Cascading Style Sheets, Level 2
Click any property to see its description with examples:
Property | Description |
---|---|
margin | Defines all four of an element's margins |
margin-bottom | Defines the bottom margin of an element. Default value is 0. |
margin-left | Defines the left margin of an element. Default value is 0. |
margin-right | Defines the right margin of an element. Default value is 0. |
margin-top | Defines the top margin of an element. Default value is 0. |