I want to make a textfield in my html page to expand as much as possible to fit the parent width. Here is an image shows what I want.
I try to use width: 100%, but the browser sets the width of elemnt as its parent's, which makes no room for other elements, they have to to be placed in second line. How can I let the element to expand as much as possible to fit all space in single line?
Thanks.