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>
Comments
Post a Comment