How can I pass div height from JavaScript to CSS? – Jquery
I want to set the position to a div depending on its own height which can be different depending on the content. This is the structure: HTML <div class="wrapper"> Content </div> CSS: :root { --height: x; } .wrappper { height:…