title: Prevent Line Break After @Html.LabelFor In ASP.NET MVC 4 Using Razor
body: <p>Here is my code.</p>
  
  <pre><code>@using (Html.BeginForm()) {
  @Html.ValidationSummary()
  
  &lt;fieldset&gt;
      &lt;legend&gt;Registration Form&lt;/legend&gt;
      &lt;ol&gt;
          &lt;li&gt;
              @Html.LabelFor(m =&gt; m.FirstName)
              @Html.TextBoxFor(m =&gt; m.FirstName)
          &lt;/li&gt;
      &lt;/ol&gt;
   &lt;/fieldset&gt;
  }
  </code></pre>
  
  <p>From the code above, the label and the textbox are on separate lines. I want to combine them to be on the same line so I can have something like...</p>
  
  <pre><code>@Html.LablFor(m =&gt; m.FirstName): @Html.TextBoxFor(m =&gt; m.FirstName)
  </code></pre>
  
  <p>Should end up looking like FirstName: <strong><em>_</em>__<em>_</em>__<em>_</em></strong></p>
  
  <p>Thanks in advance.</p>