I spin my wheel for hours on this little thing. I have a div. In this div, I want two buttons on the right (side by side), and the rest of this line is filled with an input field. I have tried countless combinations of CSS options and I can't figure it out.
I need item1 and item2 to be side by side and occupy the entire width of the parent div. Any ideas from a CSS guru? Thanks!!
http://jsfiddle.net/vasxmg1d/
<div style="width: 50%; border: 1px solid black; height: 300px;">
<br/>
<div style="width: 100%">
<input id="item1" type="text" style="width: 100%"/>
<div id="item2">
<button>button1</button>
<button>button2</button>
</div>
</div>
</div>
source
share