JSFiddle - React, Tailwind, and code Playground

by chris5marsh

HTML

<div class="em-div">
Sup wi' 'im tha knows tha daft apeth gerritetten. Where's tha bin where there's muck there's brass breadcake is that thine tha knows. Ee by gum ah'll gi' thee a thick ear. Tha what appens as maybe tell thi summat for nowt any rooad shurrup ah'll gi' thee a thick ear.
</div>

<div class="px-div">
Tell thi summat for nowt that's champion by 'eck dahn t'coil oil nobbut a lad. Bloomin' 'eck is that thine soft southern pansy aye tell thi summat for nowt appens as maybe. Cack-handed. Be reet. Ah'll gi' thi summat to rooer abaht.
</div>

<div class="result">

</div>

CSS

body {
    font-size:13px;
}

div {
    margin:0 0 1em;
}
.em-div {
    width:73.07em;
}

.px-div {
    width:950px;
}

JavaScript

$(function() {
    var output = '';
    output+= '<p>The width of em-div is '+$('.em-div').width()+'</p>';
    output+= '<p>The width of px-div is '+$('.px-div').width()+'</p>';    
    $('.result').append(output);
});