title: Show required asterisk star after the text?
body: <p>I am trying to show <code>asterisk red star</code> after the text, but text has width which does not allow to insert the asterisk after the text. See below example</p>
  
  <h2>code</h2>
  
  <pre><code>&lt;div class="col-sm-4 col-sm-offset-1 required-field"&gt;
       @Html.LabelFor(model =&gt; model.ContactPhoneNumber, new { @class = "control-label-nobold" })
  &lt;/div&gt;
  </code></pre>
  
  <h2>Generate Html</h2>
  
  <pre><code>&lt;div class="col-sm-4 col-sm-offset-1 required-field"&gt;
    &lt;label class="control-label-nobold" for="ContactPhoneNumber"&gt;If you wish to be contacted by phone, enter your phone number&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <h2>css</h2>
  
  <pre><code>.required-field:after {
      content: "*";
      font-weight: bold;
      color: red;
  }
  *, *:before, *:after {
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
  }
  </code></pre>
  
  <h2>page</h2>
  
  <p>Star showing next line</p>
  
  <p><img src="https://i.stack.imgur.com/bAdz7.png" alt="enter image description here"></p>
  
  <p>Text has width which is not allowing me to add asterisk</p>
  
  <p><img src="https://i.stack.imgur.com/NZ0fj.png" alt="enter image description here"></p>
  
  <p>How can I add star next to text?</p>