title: Why use mixin of padding and margin in sass?
body: <p>I know why to use sass but I want to know why use mixin of padding and margin?
  Kindly look into this example:</p>
  
  <pre><code>@mixin padding($top, $right, $bottom, $left) {
    padding-top: $top;
    padding-right: $right;
    padding-bottom: $bottom;
    padding-left: $left;
  }
  //Margin mixin
  @mixin margin($top, $right, $bottom, $left) {
    margin-top: $top;
    margin-right: $right;
    margin-bottom: $bottom;
    margin-left: $left;
  }
  //usage defination:
  
  @include padding(top, right, bottom, left); // one line code
  @include margin(top, right, bottom, left);  // one line code
  </code></pre>
  
  <p>css code:</p>
  
  <pre><code> padding: 1px 2px 3px 4px; // one line code
   margin: 1px 2px 3px 4px;  // one line code
  </code></pre>
  
  <p>so why to use margin padding mixin of sass as all are taking one line of code only??</p>