1,105,254 Community Members

Tabbing to centre of textarea

Member Avatar
Tinnin
Posting Whiz in Training
210 posts since Jul 2012
Reputation Points: 8 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 2 [?]
 
0
 

Hi all,

I've created an html form with a textarea for comments. When I tab into the text area the cursor moves to the centre of the top line rather than the beginning.

How can I stop this and have it always tab to the beginning of the first line without leaving any space?

Thanks.

Member Avatar
Tinnin
Posting Whiz in Training
210 posts since Jul 2012
Reputation Points: 8 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 2 [?]
 
0
 

This is the code I am using:

<p>Comments:<br /> <textarea name="comments" rows="20" cols="50">
        <?php if(isset($_POST['comments'])) echo $_POST['comments']; ?>
          </textarea></p>
Member Avatar
Tinnin
Posting Whiz in Training
210 posts since Jul 2012
Reputation Points: 8 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 2 [?]
 
0
 

Nevermind. Fixed it. It seemed the whitespace in the tags was the issue.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article