Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<textarea> displays my test in the middle !

Status
Not open for further replies.

graziaR

Programmer
Jul 28, 2006
14
US

Hi all,

I cannot get to print the text contained in the <textarea></textarea> where it should be, i.e. starting in the upper left corner of the actual text area.
I have tried to remove spaces, tabs, etc. everywhere in my code, but the text gets displayed with a maddening set of tabs before and after within the text area.
My code looks like this:

<% String comment = "This is a comment" %>

<textarea name="standard_test#comments" rows="2" cols="40"
<%= comment %> </textarea>

Anything wrong with my code ?

Many thanks !

G.
 
Try closing your tag:
Code:
<textarea name="standard_test#comments" rows="2" cols="40"[b][COLOR=blue]>[/color][/b]
<%= comment %>                            </textarea>

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
that code? yes, plenty.

1) this is an HTML forum, not an ASP forum. your code contains ASP.

2) you don't close your opening [tt]<textarea[red]>[/red][/tt] tag.



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Actually the textarea tag is closed in my code, I mistyped.

G.
 
The code works ok in IE6 although the content of the text area is a little unusual.

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top