The following example works as expected in Chrome but not in Firefox.
The footer height is set to height:40px
and in Chrome is ok, however in Firefox is smaller, around 35px
. Any reasons why?
https://jsfiddle.net/47gg3fdc/
<div class="container">
<div class="textarea">
<textarea placeholder="textarea ..."></textarea>
</div>
<div class="footer">
#footer
</div>
</div>
.container{
display:flex;
height:100px;
background-color:whitesmoke;
flex-direction:column;
}
.textarea{
flex-grow:1;
display:flex;
}
.footer{
background-color:lightseagreen;
height:40px;
color:white;
}
textarea{
flex-grow: 1;
border: none;
resize: none;
padding: 5px;
font-size: 16px;
margin: 0px;
display: block;
}