Styling an Input Field
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-04-09T02:46:56Z
Indexed on
2010/04/09
2:53 UTC
Read the original article
Hit count: 496
Hello,
How can I give the input field below the characteristics listed below?
Characteristics:
-Text typed into the field starts in the upper left corner and starts on another line (wraps?) when the right border of the field is reached.
-A scroll bar appears if the text is more than what can fit into the field.
-The text is in Courier font.
Thanks in advance,
John
echo '<form action="http://www...com/sandbox/comments/comments2.php" method="post">
<input type="hidden" value="'.$_SESSION['loginid'].'" name="uid">
<input type="hidden" value="'.$submissionid.'" name="submissionid">
<input type="hidden" value="'.$submission.'" name="submission">
<label class="addacomment" for="title">Add a comment:</label>
<input class="commentsubfield" name="comment" type="comment" id="comment" maxlength="1000">
<div class="commentsubbutton"><input name="submit" type="submit" value="Submit"></div>
</form>
';
Some relevant CSS:
.commentsubfield {margin-left: 30px; margin-top: 30px; width: 390px; height: 90px; border: 1px solid #999999; padding: 5px; }
© Stack Overflow or respective owner