<div style="width:500px">
<input type="text"><input type="text"><input type="text">
</div>
Inputs have width 31% and i will, that they fill the parent div in 100%. Auto margin for first two inputs. Like this:
Please see below code.
<div class="container">
<input type="text"><input type="text"><input type="text">
</div>
<style type="text/css">
.container {width:500px;}
.container input {width:30%;}
.container input:first-child {margin-right:5%;}
.container input:last-child {margin-left:5%;}
</style>