Hi,
I'm trying to create a form with a text-input (not textarea) that
expands to the size available, using CSS. I thought that a simple
display:block would work:
<form>
<div>
<input type="text" style="display: block">
</div>
</form>
The result is exactly the same as if I hadn't added the style
attribute. This works with other inline styles, say <a>, why not with
<input>? I've searched the web for possible reasons, without turning
up anything.
Just so you know, the text field is for inputting long URLs, often far
longer than the width of the browser. Thus, setting a static width
isn't necessary to indicate the expected length of an entry. I've
considered using textarea, but have ruled this out as Mozilla only
wraps on whitespace. It's for a URL shortening application I'm working
on--you can find it here: http://linkfrog.net
Thanks,
Walter Gildersleeve
Freiburg, Germany