I want the container to adapt to the content (textarea) in Firefox it looks good.
But in chrome the container becomes smaller than the textarea.
This is what I have tried:
.item{
border: solid 1px;
position: absolute;
}
.marco{
border: solid 1px red;
}
<div id="terminal-1" class="item item-terminal item-selected" draggable="true" figure="terminal" style="left: 145px; top: 123px;">
<div class="marco" style="margin: 10%;">
<textarea class="texto" cols="10" rows="1" placeholder="texto" style="margin: 10px 15px;">Texto</textarea>
</div>
</div>