Jeżeli ktoś zna odpowiedź to będę wdzięczny.
Mam div, w którym znajduje się <textarea> a pod nią <div> stanowiący docelowo button Post.
HTML
<div class="profileposts">
<div class="postarea">
<textarea placeholder="What's on your mind"></textarea>
<div class="post-button">Post</div>
</div>
</div>
Zależ mi na tym, aby zarówno <textarea> jak i post-button - czyli wszystko co znajduje się w <div> o klasie "postarea" było na tle białym. Niestety pomimo ustawienia białego tła dla "postarea", nie objemuje ono diva o klasie post-button.
Czy zna może ktoś przyczynę?
CSS
.profileposts
{
min-height:400px;
flex:2.5;
box-sizing:border-box;
margin-bottom:20px;
background-color:blue;
}
.profileposts textarea
{
width:100%;
box-sizing:border-box;
height:200px;
border:none;
padding: 20px;
font-family:Arial;
outline:none;
resize:none;
}
.postarea
{
background-color:white;
}
.post-button
{
float:right;
background-color:#3c5a99;
padding:4px;
border-radius:3px;
color:white;
margin-right:10px;
}