css - twitter bootstrap span not aligning properly -


for reason, when apply spans spans not align proper grid. doesn't seem matter type of element apply span to, in case inputs. want them align themselves, doing wrong?

fiddle here: http://jsfiddle.net/fkqsj/

   <div class="row-fluid">                 <div class="span12">                     <input type="text" class="span4" placeholder="first" />                     <input type="text" class="span4" placeholder="middle" />                     <input type="text" class="span4" placeholder="last" />                 </div>             </div>             <div class="row-fluid">                 <div class="span12">                     <input type="text" class="span4" placeholder="city" />                     <input type="text" class="span2" placeholder="state" />                     <input type="text" class="span2" placeholder="zip5" />                     <input type="text" class="span4" placeholder="store" />                 </div>             </div>             <div class="row-fluid">                 <div class="span12">                     <div class="span4 offset8">                         <button class="btn btn-success pull-right">search</button>                     </div>                 </div>             </div> 

taken manual

for multiple grid inputs per line, use .controls-row modifier class proper spacing.  floats inputs collapse white-space, sets proper margins, , clears float. 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -