親divの下部にテキスト領域を配置する方法とテキスト領域を同じ幅にする方法はありますか?同じ親の幅を持つ親divの下部に固定要素を配置
私が今問題にしているのは、テキストエリアがページの右側に広がっていることです。これは、HTMLとCSSで解決することができますどのようにhttps://jsfiddle.net/hu45v46p/1/
:
Htmlのここ
html,
body {
height: 90%;
}
.container {
position: relative;
margin-left: 100px;
width: 500px;
height: 100%;
border: 1px solid red;
}
.middle {
position: absolute;
top: 20px;
left: 20px;
width: 100%;
height: 100%;
border: 1px solid blue;
}
.bottom {
position: fixed;
bottom: 0;
width: 100%;
}
<div class="container">
<div class="middle">
<p>
Textarea should be placed at bottom of the 'blue' div, with the same width
</p>
<textarea class="bottom" placeholder="Textarea..."></textarea>
</div>
</div>
は、私が持っている問題の簡単な例でありますか?