Answers for "how to pass html number to css"

CSS
0

how to pass html number to css

<div class="c" style="--c: blue" >Foo</div>
<div class="m" style="--m: 0 2em">Bar</div>
<div class="c" style="--c: green">Baz</div>
Posted by: Guest on September-24-2021
0

how to pass html number to css

.divs {
  background: var(--bg);
  padding: calc(var(--pad)*5px);
}
Posted by: Guest on September-24-2021
0

how to pass html number to css

.c {color:  var(--c)}
.m {margin: var(--m)}
Posted by: Guest on September-24-2021
0

how to pass html number to css

<div id="div1" class="divs" style="--bg: #ff6; --pad: 1;">div1</div>
<div id="div2" class="divs" style="--bg: #f66; --pad: 2;">div2</div>
Posted by: Guest on September-24-2021

Code answers related to "how to pass html number to css"

Browse Popular Code Answers by Language