Hi I'm having problems getting my search box and it's search button to line up properly in ie6 & 7. In FF opera and safari and ie8 they seem ok, in that the button and the search input are beside each other.
The highlighted div was being used to apply a border effect, but as divs are display:block, it was being drawn below the first input, and that was causing div.submit to be drawn on the next "line" so that it was below the first input - not "beside" as you described. However, that was an issue in all browsers/versions I tested, not just ie6&7, so perhaps that isn't the problem.
I just checked again and although the html hasn't changed, the second input is now floating right, and the styling removed from the div highlighted above. That means the inputs are on the left/right side of the page, even further away from each other, and the second input is still below the first.
So can you explain what you are wanting to achieve more clearly?