Align text with right edge of an html form

Posted by williamjones on Stack Overflow See other posts from Stack Overflow or by williamjones
Published on 2010-04-07T15:32:26Z Indexed on 2010/04/07 15:33 UTC
Read the original article Hit count: 208

Filed under:
|
|

I have an html form where the width of a textarea is specified with cols=. I want the textarea to have a specific width in terms of number of characters.

However, I also want some controls to be right-justified to the right edge of the textarea. They're not in the textarea, but directly above or below it. Is it possible to do this?

I was thinking a possible approach might be enclosing the textarea with some type of container that could grow to the width of the textarea, but I'm not sure how I could right-justify text within that.

© Stack Overflow or respective owner

Related posts about html

Related posts about cols