Not the most self explanatory title I’ve ever authored.
What I’m trying to do (see this fiddle) is for the text field and button to remain positioned right next to eachother (no margins), with the button to the right, and thetext field covering 100% of the remaining width of the container that the button isn’t occupying. The relationship between the two should remain even if the containing element is resized.
Browser requirements: IE9+, Firefox, Webkit
Check out this little demo: little link. The code is pretty-self explaining, but here’s the basic idea:
CSS:
Hope that helped!