View Full Version : Concerning Text Areas


Potato Head
07-12-2003, 06:06 PM
I'm quite new to HTML, so please bear with me here. Now, on my web page I have a text area; however, I don't know how to position it. Do I just use a <div> code before the <form> or is there another way to do it?

Example:


<form><textarea rows="9" cols="35" style="background:#transparent" style="font-family:Tw Cen MT" style="color:#9999CC" "style="border style:solid"> This is my text.
</textarea></form>


Any help would be appreciated of how to position ^that^ text area.

Also, why is it that I can't change the size of my font in a text area? In the above example, there is no code that changes the font size. Is there any way to do that?

christiandude03
07-12-2003, 06:13 PM
A text area is a form element, intended only for the use of entering or displaying plain, unformatted text. You should be able to change the font size, color, face, and so forth, using CSS (style="") but I would advise against using a textarea for displaying text on a page. Is there any reason you chose to use a text area?

Potato Head
07-12-2003, 06:27 PM
Well, Here (http://www.lissaexplains.com/html5.shtml#textarea) , Lissa explains how to make a formatted text area. That's pretty much what I wanted to achieve. Why would you advise against using a text area?

BTW, Thanks - I'll try using CSS to change the size of my font and so on.

toosweet4u
07-12-2003, 07:03 PM
<form>
<textarea rows="9" cols="35" style="
background: transparent;
font-family: Tw Cen MT;
font-size: #px;
color: #9999CC;
border: 1px solid;">This is my text.</textarea>
</form>


Replace # with the text size you want.

You can either stick the positioning stuff in a <div> tag or the <form> tag. I would recommend using div.