user1840291
user1840291

Reputation: 37

My Textarea won't input text

I have been writing web code for a few years now and I am stumped. I am writing basic CSS/HTML and my textarea won't input text. my title is there and after double clicking on it, my cursor should indicate it is ready to type.

Any ideas?

My css

.postForm {
    float: right;
    width: 580px;
    height: 80px;
    position:relative;
    margin-top:-30px;
    padding-top:30px;
    left:-30px;
}

My Html

<div class="postForm">
<form action="profile.php?id=<? echo $_GET['id']; ?>" method="POST">
<textarea style="resize:none;font-family:Comic Sans MS; font-size:12pt;overflow: hidden;" id="post" name="post" class="auto-clear" rows="1" cols="60" title="Publish your thoughts...">     
</textarea>
<input style="position:relative;margin-left:450px;margin-top:-66px;" type="image" name="send" value="Post" src="post.png" />
 </form>

Upvotes: 1

Views: 2797

Answers (2)

Kevin Bowersox
Kevin Bowersox

Reputation: 94489

It is accepting input. Put your cursor in the textarea and hold down any key for a few seconds. It will eventually wrap down. The problem is caused by the overflow being hidden. Also postForm floating the element right is not helping matters.

Upvotes: 1

chrki
chrki

Reputation: 6333

You don't use the value parameter on textareas, but do this: <textarea>example text</textarea>

Upvotes: 1

Related Questions