I have following code in html:
<div> <div style='float:left;margin:0.5em'> <span class='title'>Label1</span><br/> <input type='text' name='name1' size='8' /> </div> <div style='float:left;margin:0.5em'> <span class='title'>Label2</span><br/> <input type='text' name='name2' size='12' /> </div> <div style='float:left;margin:0.5em'> <span class='title'>Label3</span><br/> <input type='text' name='name3' size='12' /> </div> <div style='float:left;margin:0.5em'> <span class='title'>Label4</span><br/> <select name='name4'> <option value='m'>value1</option> <option value='f'>value2</option> </select> </div> <div style='float:left;margin:0.5em'> <span class='title'>Label5</span><br/> <input type='text' name='name5' size='8' /> </div> </div>
In Mozilla Firefox and Google Chrome it looks all right: firefox and chrome look http://jakub.sturc.info/data/so-labeled-inputs-chrome.png
However in Internet Explorer 7 it is slightly malformed: malformed IE7 look look http://jakub.sturc.info/data/so-labeled-inputs-ie7.png
Do you have any tips how to force IE to render desired output?
since you are using no reset css I would recommend a shortcut would be to change the margin to padding instead on the wrapper divs which will be consistent between browsers.
Not the best technique but simplest in your case.