JSFiddle - React, Tailwind, and code Playground
by sushanth009
HTML
<div class="floatcontainer doc_header" >
<img class=".logo-image" src="http://lorempixel.com/400/200/"/>
//the image is naturally 1092x200
</div>
CSS
.floatcontainer
{
width: 90%;
height: 200px;
background-color: orange;
}
JavaScript
var newWidth = $('.floatcontainer.doc_header').css("width");
$('.logo-image').css("width", newWidth);