JSFiddle - React, Tailwind, and code Playground
by Naning
HTML
<script src="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc2/jquery.mobile-1.0rc2.min.css">
<input type="text" id="in1" value="100px"/>
<input type="text" id="in2" value="150px"/>
<input type="text" id="in3" value="33%"/>
<div id="div1" style="border: 3px coral solid;">
<label>This is the div-conten. It is 250px wide. I swear ! </label>
<input type="text" />
<input type="text" />
</div>
JavaScript
document.getElementById("in1").style.width="100px";
document.getElementById("in2").style.width="150px";
document.getElementById("in3").style.width="33%";
document.getElementById("div1").style.width="250px";