CSS2 Margin Property Reference Guide
CSS2 Margin Property Reference Guide
This is a complete reference guide for web developers that lists all the CSS properties related to margins as defined in the worldwide Web Consotium Recommendation for Cascading Style Sheets () rel=”noopener” target=”_blank” title=”CSS Tutorial”>CSS) Level 2.
Click any property to see its description with examples-
Number | Property and Description |
---|---|
1 | margin Defines the four margins of an element. |
2 | margin-bottom Defines the bottom margin of an element. The default value is 0. |
3 | margin-left Defines the left margin of an element. The default value is 0. |
4 | margin-right Defines the right margin of an element. The default value is 0. |
5 | margin-top Defines the top margin of an element. The default value is 0. |