JSFiddle - React, Tailwind, and code Playground

by basti1012

HTML

<div id="con">
<div id="e">

</div>
<div id="w">

</div>
</div>
<button id="button">
Rotes feld vergrössern
</button>

CSS

#con{
  width:100%;
  height:auto;
  display:flex;
}


#e{
  width:50%;
  height:100px;
  background:red;
}

#w{
  width:50%;
  height:auto;
  background:blue
}

JavaScript

$('#button').click(function(){

a=$('#e').height();
$('#e').css('height',a+10);
})