Try this stylesheet:
.searchForm { clear: both; display: block; width: 150px; } .searchForm .input { display: block; float: left; margin: 0 10px 0 0; width: 100px; } .searchForm .input label { display: none; .searchForm .input input { display: block; ... and any other styles ... */ .searchForm .submit { display: block; float: right; margin: 0 0 0 10px; width: 30px; ; }
This is the correct <div> float. You do not have to put them in a <span> to make it work, it's just lazy coding. Chuck in width in styles the way you want, and it should work. It really depends on the rest of your code / css.
Good luck
source share