I tried using md-offset-8, xs-2 but that didn’t work, I need to aligned all the form fields in center.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" />
<div class="col-md-8 col-md-offset-4 text-center">
<form class="form" action="/action.php", method="POST">
<div class="form-group row">
<div class="col-xs-4">
<label for="field_1">Field 1</label>
<input class="form-control" id="field_1" type="text" name="field 1">
</div>
<div class="col-xs-2">
<label for="field_2">Field 2</label>
<input class="form-control" id="field_2" type="text" name="field 2">
</div>
</div>
<div class="form-group row">
<div class="col-xs-8">
<label for="dataFolder">Field 3</label>
<input class="form-control" id="field_3" type="text" name="field_3" value=text>
</div>
</div>
<div class="col-md-6 text-center">
<button type="submit" class="btn ink-reaction btn-raised btn-primary">Save</button>
</div>
</form>
</div>
2
Answers
Like so? you may need to adjust the position of the submit button in order to align all the elements vertically. A flex-box container could do the trick to do it
Do u mean something like this?