JSFiddle - React, Tailwind, and code Playground
by userdude
HTML
<div id="foo">
Foo
<div id="bar">Bar</div>
</div>
CSS
div#foo {
background-color: #fcc;
height: 100px;
}
div#bar {
margin-bottom: 1.56em;
background-color: #ccf;
}
JavaScript
$().ready(function(){
alert("Foo height: "+$('#foo').height()+"px");
alert("Bar margin-bottom: "+$('#bar').css('margin-bottom'));
});