Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css pass param to class

<div class="round" style="--radius: 100%;"></div>
<style>
  .round {
    display: block;
    height: 40px;
    width: 40px;
    border: 1px solid #BADA55;
    border-radius: var(--radius);
  }
</style>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #pass #param #class
ADD COMMENT
Topic
Name
5+4 =