Alexander Alexander - 1 year ago 90
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:

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 atleast say why and what can i do better when i ask the next time. Thanks.

Answer Source

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">

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download