JSFiddle - React, Tailwind, and code Playground

by Wentz Wu

HTML

<div id="container">
    <h1 id="hello">hello world</h1>
    <h2 style="float:left;">test</h2>
    <h2>this is a book</h2>
</div>

CSS

#container {
    position: static;
    border: 1px solid red;
    left: 10em;
}

#hello {
    float: left;
    margin-right: 5em;
    height: 5em;
    
}
h1 , h2 {
    border: 1px solid black;
}

JavaScript

var $h1 = $("h1");
var p = $h1.css("position");
//alert(p);
console.log($("#container").height());