title: How to wrap the text in the DisplayFor in MVC view?
body: <p><img src="https://i.stack.imgur.com/zJN1A.png" alt="comments extends">
  I am developing a MVC app.
  I have a commenting feature in the app.</p>
  
  <p>My problem is, when any user posts a comments without pressing the enter key, then the comment comes out as one single line and crosses the screen and the user has to scroll horizontally to see the entire comment. </p>
  
  <p>I want to wrap the comment and show it at a specific width.</p>
  
  <p>Ex. </p>
  
  <blockquote>
    <p>admin 04 May 13 12:43 PM
    zxczxcasdasdzxczxcasdasdzxczxcasdasdzxczxcasdasdzxczxcasdasdzxczxcasdasdzxczxcasdasdzxczxca</p>
  </blockquote>
  
  <p>I use the below code to show the comments in the view</p>
  
  <pre><code>&lt;div class="CommentP" style="width:550px;" &gt;
   @Html.DisplayFor(ModelItem =&gt; item.CommentText, new {style = "width:550px;" })
  &lt;/div&gt;
  </code></pre>