Margins

suggest change

Syntax

Parameters

Parameter | Details |
————— | –––––––––– |
0 | set margin to none |
auto | Absorbs leftover space. A block with a definite width and both horizontal margins set to auto is centered. |
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