Looking to store a dynamic property in a variable for use with calc()
.
There is a class with a height that changes dynamically.
.cuerpo-detalle {
height: x;
}
The goal is to create a variable that captures the height property of the .cuerpodetalle
class.
:root{
cuerpoDetalle: .cuerpo-detalle.height;
}
This variable will be used as a dynamic measurement, multiplied by 2 for a footer expansion.
.footerxpand{
height: calc(var(--cuerpoDetalle)*2);
}