I searched for a way to size a textarea
according to the rest of my layout and stumbled over the box-sizing method. I probably didn't use it correctly because it doesn't work for me. I have a layout that shows 3 different rows. The middle row should display a text-input field and below are all the recent posts. Now i want the textarea
to be the same width as my other postings.
HTML
<div class="row">
<div class="col-sm-2">
<!-- Empty Space -->
</div>
<div class="col-sm-2">
Some text here
</div>
<div class="col-sm-4">
<textarea placeholder="Text here"></textarea>
<div class="well"> Posts ...</div>
</div>
<div class="col-sm-2">
Some text here
</div>
<div class="col-sm-2">
<!-- Empty Space -->
</div>
</div>
And the css
textarea{
box-sizing: border-box;
border-radius: 5px;
resize: none;
}