CSS
#one { background:red; width:300px; padding:5px; } #two { width:100%; border:3px solid blue; padding:4px; }
HTML
<div id="one"><input type="text" value="Test" id="two" /></div>