I am trying to create liquid text input with the submit button on the right. Login and button should fill 100% of your container.
Here is an example of what I'm trying to achieve: http://jsfiddle.net/t7tgJ/
The problem that I am facing is that the input stream fills its container, I need to give it the width of the liquid, for example, 100%. However, if I float on the button on the right, I will need to reduce this width by about 90% so that the button can fit. But this only works for one viewport size.
I want something like
input { width: 100% - {button.width}; }
button { float: right; }
or, in plain English, my entry should go to the right button and stay that way at any size of the viewport.
source
share