title: C# - How can I cut a string at its end to fit in a div?
body: <p>I'm making a list of recent news. So, it will show something like this:</p>
  
  <pre><code>- Take a look at the new Volks...
  - John Doe is looking for a jo...
  - Microsoft is launching the n...
  </code></pre>
  
  <p>So, the list above only shows me the title of the news and the length of each news is limited in 25 characters. But, this is not working well... for example, if you type 25 M's, it will explode my div.</p>
  
  <p>I've been told that there is a way to calculate the length of the string and make it fit in a div automatically.</p>
  
  <p>Does anyone know how to do it?</p>
  
  <p>thanks!!</p>