Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

textarea and button are set to width 90% and 10% but are wrapping in flex container [duplicate]

$
0
0

I want the input box and the send button box to be beside each other in the flex row, with the input taking 90% of the width. However, the send button is wrapping under the input and I'm not sure why.

.chatFooter { /* footer */  width: 100%;  display: flex;  flex-flow: row wrap;  justify-content: space-around;  box-sizing: border-box;  -webkit-box-sizing: border-box;  -moz-box-sizing: border-box;  -ms-box-sizing: border-box;  -o-box-sizing: border-box;}.chatInput {  height: 100%;  width: 90%;  outline: none;  resize: none;  font-size: 1em;  font-family: inherit;  background-color: white;}.chatSendBtn {  height: 100%;  width: 10%;  font-size: 1.3em;  background-color: white;  color: black;  cursor: pointer;}.chatSendBtn:hover {  color: red;}
<div class="chatFooter"><textarea     class="chatInput"     placeholder="Enter message"></textarea><div class="chatSendBtn">    Send</div></div>

edit: I added borders on my elements in the initial question so it was easier to see what was happening, but the original issue of the wrapping button exists without any buttons, I've removed the borders.


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>