I'm struggling with formatting a form that is enclosed in a bordered fieldset. Currently, all the form fields are filling the entire width of the fieldset. However, I want certain textfields to be shorter and centered within the fieldset. I have attempted to use col-md-10 to shorten them, but then I am unable to center them as they remain aligned to the left.
Below is an example of how the fields are currently displayed:
<div class="form-group">
<label for="planner" class="control-label">form.planner *</label>
<input class="form-control" id="planner" name="planner" type="text">
I have also tried adding "col-md-10 center-block" to the form-group class, but this did not achieve the desired result. I experimented with using span and offset combinations as well, but unfortunately, none of them worked.
The image below illustrates the current layout and the desired outcome. Any suggestions on how I can achieve this?
It's important to note that not all fields need to be resized. The form extends beyond the visible fields, and some other fields must continue to fill the width of the fieldset as they currently do.