Alexander Alexander - 4 months ago 7
PHP Question

php textarea to full size

im pretty new to php and so i have one question here.

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

It schould look a bit like this: http://prntscr.com/bwmcf3

The Code I use

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





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

Answer

To achieve expected result , use below

body {
  height: 100%;
}

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

http://codepen.io/nagasai/pen/NArRYK

With inline styling use below

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

http://codepen.io/nagasai/pen/akGmYy

Comments