title: Display text/label after textbox in ASP
body: <p>I have a simple form in a ASPX page that have a lot of <code>&lt;label&gt;</code> and <code>&lt;asp:TextBox&gt;</code> pairing that construct the outlay of the form.</p>
  
  <p>I have a requirement to add a string behind the textbox to indicate that the field is compulsory. I'd tried adding either a <code>&lt;span&gt;</code>, a <code>&lt;em&gt;</code> or a <code>&lt;div&gt;</code> after the  field but it will still display the message at the bottom of the textbox.</p>
  
  <p>Any way for me to achieve this?</p>
  
  <p><strong>EDIT:</strong>
  I mean right hand side of the textbox, not behind as in watermark. My Bad.</p>
  
  <p><strong>EDIT for sample code:</strong><br/>
  I'd tried all the suggestion but it is still not working, thinking whether it's my code issue or not. Below are my codes:</p>
  
  <pre><code>&lt;label&gt;Telephone No.&lt;/label&gt;
  &lt;asp:TextBox ID="txtTelNo" runat="server"&gt;&lt;/asp:TextBox&gt;
  &lt;span class="afterInput"&gt;test&lt;/span&gt; 
  </code></pre>
  
  <p>any pointers? Thanks.</p>
  
  <p><strong>EDIT for Answer</strong> <br/>
  As it turns out the problem lies in the css property. The template that i used has all the input assigned with the <code>display: block</code> property, which makes anything after the <code>&lt;input&gt;</code> element to be pushed down.</p>
  
  <p>After creating a custom css class with <code>display: inline-block</code> and assign to them appropriately, i manage to get the result that i wanted.</p>
  
  <p>Many thanks for the answer provided, especially the <code>:after</code> attributes and the watermark attributes.</p>