Margins

suggest change

Syntax

Parameters

Parameter | Details |
————— | –––––––––– |
0 | set margin to none |
auto | used for centering, by evenly setting values on each side |
units (e.g. px) | see parameter section in Units for a list of valid units |
inherit | inherit margin value from parent element |
initial | restore to initial value |

Remarks

More on “Collapsing Margins”: here.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents