Re: basic textarea question

Probably not.
> when i create a textarea with say 3 lines showing, the bottom of
> the textarea box lines up the current line,

That's natural, since a textarea element is a "text level" or "inline"
element, treated by the browser as if it were one _big_ letter, so to
say.
> it looks akward and out of place, how can i get
> the top of the textarea box to line
> up with current line

Perhaps the simplest way is to use
textarea { vertical-align: top; }
in a style sheet. Other options include using a table, with the prompt
in one cell and the textarea in another, with valign="top" attributes
in the <td> elements.

On the other hand, I think it's normally best to put the prompt for a
textarea on a line of its own right before the textarea. This avoids
the problem:

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!