How to get the text field with auto extend based on the browser width (with pure css). For example if I scale the browser to minimum width also the text field should not jump to the second line.
I need exactly like how it is shown in this image
How to get the text field with auto extend based on the browser width (with pure css). For example if I scale the browser to minimum width also the text field should not jump to the second line.
I need exactly like how it is shown in this image
there are more than one ways you can achieve this position
http://jsfiddle.net/rHqE7/4/
You can't do it alone with CSS. Use jQuery AutoResize Plugin
As far as I can know, you cannot do it with only CSS for inputs, but you can emulate this behaviour using a
div
withcontenteditable
attribute - demo http://dabblet.com/gist/3150040HTML
CSS
Not 100% sure it's the desired effect but for some browsers this might be what you're looking for:
html:
And css:
Example: http://jsfiddle.net/48fNt/ (works in at least chrome)
Maybe you also still need to play around with white-space:nowrap and a min-width.