Margin

Margin

Syntax (custom)

```other code
    //Utilities
    margin: ("mg",4), 
    // First Element is name of utility : "mg"
    // Second Element is maximum number of margin units : 4
```

Syntax

To give margin , there are 7 ways to give margin

  • .mg-{num} :margin:{num};

  • .mg-top-{num} : margin-top:{num};

  • .mg-bottom-{num} : margin-bottom:{num};

  • .mg-right-{num} : margin-right:{num};

  • .mg-left-{num} : margin-left:{num};

  • .mg-x-{num} : margin-right:{num}; margin-left:{num}

  • .mg-y-{num} : margin-top:{num}; margin-bottom:{num}

Rules of {num}

possible values :

  • 0

  • 1

  • 2

  • 3

  • 4

Last updated

Was this helpful?