We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,688 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Tabbing to centre of textarea

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.

1
Contributor
2
Replies
11 Minutes
Discussion Span
5 Months Ago
Last Updated
3
Views
Tinnin
Junior Poster
160 posts since Jul 2012
Reputation Points: 8
Solved Threads: 1
Skill Endorsements: 2

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>
Tinnin
Junior Poster
160 posts since Jul 2012
Reputation Points: 8
Solved Threads: 1
Skill Endorsements: 2

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

Tinnin
Junior Poster
160 posts since Jul 2012
Reputation Points: 8
Solved Threads: 1
Skill Endorsements: 2

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0743 seconds using 2.99MB