I want to save a dynamic property in a variable and then I want to use that variable with calc()
I have a class with a dynamic height
.cuerpo-detalle {
height: x;
}
I want to assign a variable with the height property of the class .cuerpodetalle
:root{
cuerpoDetalle: .cuerpo-detalle.height;
}
Then I want to use that variable as a dynamic measure and multiply that in 2 for a footerxpand
.footerxpand{
height: calc(var(--cuerpoDetalle)*2);
}