float: right in IE7 dropping to a new line

前端 未结 5 2062
甜味超标
甜味超标 2020-12-14 08:01

I\'ve been stuck on a float issue for a little while so I am hoping the community can help me again. I have a new webform here. As usual it looks fine in everything but IE7

5条回答
  •  醉酒成梦
    2020-12-14 08:17

    You could try to make the span tags you have for the text a fixed width, float them left, and do the same for the input field you want to correspond with. I'd also recommend using a label tag instead of a span tag on forms. No real solid reason for it, it's just that a label was meant for exactly what you have the span tag doing.

提交回复
热议问题