Can I dynamically size HTML input fields?
This is probably a really simple question.
I am wondering if there is a way to make my <input> fields size dynamically. For example, I have a page such as this: Code:
<HTML> |
I think that that's possible with AJAX because, in theory, it provides the capabilities of dynamism that you want. Unfortunately it would be difficult to gauge when to expand the form because most text formats and multispaced rather than a predictable monospace.
|
Simple: instead of using the size attribute, use CSS and set the width as a percentage. For example:
Code:
<input type="text" name="foo" value="bar" style="width: 50%" /> |
All times are GMT -5. The time now is 03:28 PM. |