twitter bootstrap block level form

前端 未结 1 956
生来不讨喜
生来不讨喜 2021-01-06 08:10

I am trying to get full width Login form. Basically, the input fields for the user name, password and the button all should be of the same length. now I can get this using s

相关标签:
1条回答
  • 2021-01-06 08:57

    You can use display: table and display: table-cell to get the inputs to fill the remaining space in the spans correctly or use fluid widths. Here's a fiddle for the first approach:

    http://jsfiddle.net/EP83X/22/

    Or use width: 90.666% on the inputs based on the fixed icon width (28px) and the width of the spans ((300-28) / 300 * 100).

    0 讨论(0)
提交回复
热议问题