Property | Syntax | Description |
---|---|---|
margin | margin: 2px 1em 0 auto; margin: 20px 20%; |
The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left. |
padding | padding: 2px 1em 0 auto; | Sets the padding area on all four sides of an element at once. |
width | width: 2px 1em 0 auto; | Sets an element's width. |
Property | Syntax | Description |
---|---|---|
margin | margin: 2px 1em 0 auto; margin: 20px 20%; |
The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left. |
padding | padding: 2px 1em 0 auto; | Sets the padding area on all four sides of an element at once. |
width | width: 2px 1em 0 auto; | Sets an element's width. |
width | width: 2px 1em 0 auto; | Sets an element's width. |
width | width: 2px 1em 0 auto; | Sets an element's width. |
width | width: 2px 1em 0 auto; | Sets an element's width. |