Is there a way to align two text boxes and a drop-down in the same row while displaying labels below them? I want the layout to look like this:
https://i.sstatic.net/eQZnn.png
Currently, my code is displaying the text boxes stacked on top of each other.
<div class="form-horizontal ">
@Html.TextBoxFor(model => model.City, new{ placeholder = "City" })
@Html.ValidationMessageFor(model => model.City)
<div><small class="form-text text-muted">City</small></div>
@Html.DropDownListFor(x => x.State, PressRoom.Helpers.StateNamesList.GetStatesList(), new { placeholder = "--Select State--" })
@Html.ValidationMessageFor(model => model.State)
<div><small class="form-text text-muted">State</small></div>
@Html.TextBoxFor(model => model.ZipCode, new { placeholder = "Zip Code" })
@Html.ValidationMessageFor(model => model.ZipCode)
<div><small class="form-text text-muted">Zip</small></div>
</div>