Hello, how to set <textarea> width in a form? Here is the simple code of my form: <body> <form method="post" action="mail.php"> <input type="text" name="name" size="50" class="input" /><br /> <br /> <input type="text" name="email" size="50" class="input" /><br /> <br /> <textarea name="message" rows="5" ????? class="text"></textarea> <br /> <br /> <input type="image" src="go.jpg"> </form> </body> Basically, I don't know what to put in the place of ????? to set the width of <textarea>. If I put size="50" as in the above <input type> fields, it makes no effect in <textarea>.
Well, first off i suggest that you learn about CSS as the input width's should be defined with CSS, especially as you seem to be attempting to code with xHTML. As far as your problem is concerned, put the following in your <head> section, <style type="text/css"> <!-- textarea { width: 2000px; } --> </style> Code (markup):