Aligning text and select boxes to the same width in CSS?

前端 未结 7 1642
误落风尘
误落风尘 2020-12-22 23:32

Ok this is seemingly impossible to get right. I have a text box and a select box. I want them to be the same width exactly so they line up on the left margin and the right m

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-23 00:13

    If u use tables 4 inputs u could use the following solution - also compatable with ie7:

    
         
    
    
        
    
    

    That way the table cell width will be fixated to the width of the input,

    And that way the select would therefore always take the remaining width and perfectly line up with d input.

提交回复
热议问题