My issue arises from having a div
containing a listbox (select), textbox (input text), and button (input submit) inside it, with width:250px
set for the entire div and width:100%
for each element within. Logically, this should fill the space inside the div. However, the textbox ends up longer than the other elements.
Any suggestions on why this is happening and how to resolve it?
Demo: http://jsfiddle.net/xXVHu/15/
Update: I appreciate the duplicate flag, but where is the explanation for why the input text is wider than the input submit?
It's important to note that this needs to be compatible with IE8, for reasons I can't disclose.
All the divs in my code hold specific significance, so even if they may seem unnecessary, they serve a purpose!