Aligning form elements in a bootstrap dialog -


i created demo of problem here: http://jsfiddle.net/xwcba/

the form here asks email , password, , below "remember me" checkbox, , "forgot password" link (button).

here problem - "forgot password" link below checkbox. want on the same row checkbox, , right-aligned.

i've been knocking around while, , can't seem "forgot password" link need be. suggestions?

<div class="controls controls-row">   <label class="checkbox span4"><input type="checkbox" id="inlinecheckbox1" value="option1"> remember me 2 weeks</label>   <button type="button" class="btn-link span2">forgot password?</button> </div> 

you put button inside 'checkbox' label, , use pull-right on controls-group this...

<div class="control-group pull-right">  <div class="controls controls-row">     <label class="checkbox"> <input type="checkbox" id="inlinecheckbox1" value="option1"> remember me 2 weeks  <button type="button" class="btn-link">forgot password?</button></label>  </div>                                  </div> 

http://jsfiddle.net/skelly/xwcba/2/


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -