Forum Moderators: coopster

Message Too Old, No Replies

Html/php textarea

         

mag1

11:04 am on Mar 18, 2005 (gmt 0)

10+ Year Member



Hi,

I've got a form in html, I'm using php and a few javascript functions for validation. The problem I have is that when I tab from an input field to the next input field (which is a textarea) the cursor doesn't go to the top left corner of the textarea but about 20-30 spaces in from the top left corner. From what I can see there's nothing in my code that should be causing this but I don't know how to stop it from happening.

Has anyone come across this problem before? If so what did you do to get around it?

Thanks,
Mag1

dreamcatcher

11:17 am on Mar 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there something in your CSS file that might be causing it? Some kind of padding?

mag1

11:22 am on Mar 18, 2005 (gmt 0)

10+ Year Member



No I can't see anything in my CSS file either. It's a strange one because on the form I have 3 other textareas which are fine. This wouldn't be caused by the javascript validation?

tata668

1:45 pm on Mar 18, 2005 (gmt 0)

10+ Year Member



You should show us some code.

I guess you have something like:


<textarea>

</textarea>

And even if you think this will produce an empty texarea, it will in fact contain newlines and spaces.

stryct9

9:35 pm on Mar 18, 2005 (gmt 0)



make sure you put the <textarea> and </textarea> on the same line, and if you are printing a variable in there again, maksure there all on one line, otherwise you will get some blank spaces.