gauti negatyvią CSS kintamojo reikšmę

    0

    0

    custom-propertynegative-value

    The following code sets the height of the .d-ruler element to 10rem and calculates the bottom margin to be -1rem.

    .d-ruler {
      --height: 10rem;
      margin-bottom: calc(var(--height) * -1);
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.