Alexander Alexander - 6 months ago 41
CSS Question

textarea to full size

How can i make the textarea fullscreen and make the button bigger?

It should look a bit like this:

The Code I use

<form method="post" action="query.php">
<textarea type="text" size="50" name="txtarea" maxlength="1000000"style="font-family: Arial;font-size: 12pt;">
<input type="submit">

If you vote this question down at least say why and what can i do better when i ask the next time. Thanks.


To achieve expected result , use below

body {
  height: 100%;

textarea {
  width: 100%;
  height: 100vw;

With inline styling use below

<textarea type="text"  name="txtarea" style="font-family: Arial;font-size: 12pt;width:100%;height:100vw">