<div style='width: 300px'> <div id='one' style='float: left'>saved</div><input type='submit' id='two' style='float: right' value='Submit' /> </div>
I would like div#one to be centred in the space between the left edge of the parent div and the left edge of the submit button.
A few more ways to do it:
It’s hard to tell that the text
savedisn’t centered between the left edge of the containerdivand the left edge of the submit button.Here is an exact version of the above: