I'm struggling with properly aligning buttons in my razor markup.
When using form-horizontal
:
<div class="row">
<div class="col-md-6">
<div class="form-group">
@html.labelfor
@html.editorfor
@html.validationmessagefor
</div>
</div>
<div class="col-md-4">
<button class="btn btn-default" type="button" id="buttonId">
<span>Button Label</span>
</button>
</div>
</div>
The button lines up with the <label>
, but I want it to line up with the <input>
. I've tried adjusting margins and padding without success.
EDIT: Here is a link to the Fiddle