Position mixin for SCSS

    0

    0

    SASS/SCSS Starter Kit

    This mixin will position an element according to the given absolute position, top, right, bottom, and left values. It will also set the z-index to the specified value.

    Shortcut: scss.mixin.position

    @mixin position($position: absolute, $top: null, $right: null, $bottom: null, $left: null, $z-index: initial) {
      position: $position;
      top: $top;
      right: $right;
      bottom: $bottom;
      left: $left;
      z-index: $z-index;
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.