title: CSS Class for DropDownListFor
body: <p>Using scaffolded items in an MVC5 application, I see things like text fields given the CSS class "form-control". The fields all have consistent rounded corners, same font color/size etc.</p>
  
  <p>Now I've added a dropdown list using "@Html.DropdownListFor" and it's square, with a different font colour.</p>
  
  <p>I know I can specify which CSS class to use in the Razor e.g. </p>
  
  <pre><code>@Html.DropDownListFor(model =&gt; model.OrderItemTypeId, (SelectList)ViewBag.OrderItemTypes, new { htmlAttributes = new { @class = "###########" } })
  </code></pre>
  
  <p>But I don't know what to replace ########### with. If I specify "form-control" just gives me the square box I described above. "form-control select" doesn't seem to do much either. </p>
  
  <p>Here's a bigger snippet showing a well-styled text field directly above it</p>
  
  <pre><code>        &lt;div class="form-group"&gt;
              @Html.LabelFor(model =&gt; model.Title, htmlAttributes: new { @class = "control-label col-md-2" })
              &lt;div class="col-md-10"&gt;
                  @Html.EditorFor(model =&gt; model.Title, new { htmlAttributes = new { @class = "form-control" } })
                  @Html.ValidationMessageFor(model =&gt; model.Title, "", new { @class = "text-danger" })
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="form-group"&gt;
              @Html.LabelFor(model =&gt; model.OrderItemTypeId, htmlAttributes: new { @class = "control-label col-md-2" })
              &lt;div class="col-md-10"&gt;
                  @Html.DropDownListFor(model =&gt; model.OrderItemTypeId, (SelectList)ViewBag.OrderItemTypes, new { htmlAttributes = new { @class = "form-control" } })
                  @Html.ValidationMessageFor(model =&gt; model.OrderItemType, "", new { @class = "text-danger" })
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>Is there a value I can use that will give my dropdown the same appearance as all the other text fields I already have?</p>
  
  <p>Thanks</p>