I am trying to get a form to display inline. I can do this WITHOUT using bootstrap, but then obviously I lose the CSS styling. When I try and use the bootstrap classes, I end up with the form displaying vertically. Does anyone have a quick fix for this?
Here is my HTML helper form:
@using (Html.BeginForm("Index", "Person", FormMethod.Get, htmlAttributes: new { @class = "form-inline" })) {
<fieldset>
<p>
Filter by: @Html.DropDownList("FilterType", null, htmlAttributes: new { @class = "form-control" }) Search for: @Html.TextBox("SearchString", null, htmlAttributes: new { @class = "form-control" }) | Display: @Html.DropDownList("ItemDisplay", null, htmlAttributes:
new { @class = "form-control" })
<input type="submit" class="btn btn-default" value="Submit" />
</p>
</fieldset>
}