I recently found out about calc in css:
width: calc(100% - 100px);
this can be used to solve this problem: jsfiddle here
HTML:
<div class="setting"> label <input class="s2"/> </div>
CSS
.setting { position: relative; width: 100%; } .setting .s2 { position: absolute; left: 180px; width: calc(100% - 184px); }
jvilhena
source share