HTML CSS examples for CSS Form:input button
One line input with 100% and button in CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div.container {<!-- w w w .j a v a 2 s .c o m--> display:-webkit-flex; display:flex; -webkit-flex-direction:row; flex-direction:row; } div.container > textarea { -webkit-flex:1 1 auto; flex:1 1 auto; } div.container > button { -webkit-flex:0 1 auto; flex:0 1 auto; } table.container { width:100%; border-collapse:collapse; table-layout:fixed; } table.container textarea { width:100%; -moz-box-sizing:border-box; box-sizing:border-box; } </style> </head> <body> Flex box solution: <div class="container"> <textarea rows="1"></textarea> <button>One</button> <button>Two</button> </div> Table solution: <table border="0" class="container"> <colgroup> <col> <col style="width:3em;" span="2"> </colgroup> <tbody> <tr> <td> <textarea rows="1"></textarea> </td> <td> <button>One</button> </td> <td> <button>Two</button> </td> </tr> </tbody> </table> </body> </html>